Skip to content

Commit 47405cb

Browse files
authored
add Assignable ISBN to book (#1626)
1 parent 25b096c commit 47405cb

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Generated by Django 5.0.14 on 2025-05-19 14:44
2+
3+
from django.db import migrations, models
4+
5+
6+
class Migration(migrations.Migration):
7+
8+
dependencies = [
9+
("books", "0158_alter_book_cover_color"),
10+
]
11+
12+
operations = [
13+
migrations.AddField(
14+
model_name="book",
15+
name="assignable_isbn_13",
16+
field=models.CharField(blank=True, help_text="ISBN 13 for assignable version.", max_length=255, null=True),
17+
),
18+
]

books/models.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -655,6 +655,7 @@ def get_title_image_url(self):
655655
print_softcover_isbn_13 = models.CharField(max_length=255, blank=True, null=True,
656656
help_text='ISBN 13 for print version (black and white).')
657657
digital_isbn_13 = models.CharField(max_length=255, blank=True, null=True, help_text='ISBN 13 for digital version.')
658+
assignable_isbn_13 = models.CharField(max_length=255, blank=True, null=True, help_text='ISBN 13 for assignable version.')
658659
ibook_isbn_13 = models.CharField(max_length=255, blank=True, null=True, help_text='ISBN 13 for iBook version.')
659660
ibook_volume_2_isbn_13 = models.CharField(max_length=255, blank=True, null=True,
660661
help_text='ISBN 13 for iBook v2 version.')

0 commit comments

Comments
 (0)