Skip to content

Commit

Permalink
feat(models): add pdf_filename to Source
Browse files Browse the repository at this point in the history
  • Loading branch information
b1rger committed Apr 18, 2024
1 parent b96eb20 commit d80f38a
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
18 changes: 18 additions & 0 deletions apis_ontology/migrations/0036_source_pdf_filename.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Generated by Django 4.2.11 on 2024-04-18 07:16

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('apis_ontology', '0035_versionwork_versionplace_versioninstitution_and_more'),
]

operations = [
migrations.AddField(
model_name='source',
name='pdf_filename',
field=models.CharField(blank=True),
),
]
1 change: 1 addition & 0 deletions apis_ontology/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ class Source(GenericModel, models.Model):
pubinfo = models.CharField(max_length=400, blank=True)
author = models.CharField(max_length=255, blank=True)
orig_id = models.PositiveIntegerField(blank=True, null=True)
pdf_filename = models.CharField(blank=True)

content_type = models.ForeignKey(ContentType, on_delete=models.CASCADE, blank=True, null=True)
object_id = models.PositiveIntegerField(blank=True, null=True)
Expand Down

0 comments on commit d80f38a

Please sign in to comment.