Skip to content

Commit

Permalink
adding bfi identifier add BFI identifier - max 7 chars #125
Browse files Browse the repository at this point in the history
  • Loading branch information
acholyn committed Nov 11, 2024
1 parent 0a9682c commit 064779f
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
17 changes: 17 additions & 0 deletions mod_app/migrations/0027_film_bfi_identifier.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Generated by Django 4.2.5 on 2024-11-11 11:39

from django.db import migrations, models


class Migration(migrations.Migration):
dependencies = [
("mod_app", "0026_alter_feedback_options_alter_projectnote_options"),
]

operations = [
migrations.AddField(
model_name="film",
name="bfi_identifier",
field=models.CharField(blank=True, max_length=7, null=True),
),
]
2 changes: 2 additions & 0 deletions mod_app/models/film_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ def get_absolute_url(self):
max_length=100, blank=True, null=True
) # can use choices if preset

bfi_identifier = models.CharField(max_length=7, blank=True, null=True)

cast = models.TextField(
blank=True,
null=True,
Expand Down

0 comments on commit 064779f

Please sign in to comment.