Extend ISBN to include dashes

This commit is contained in:
2023-10-03 22:43:20 +02:00
parent 4f52736d97
commit 08226247c7
2 changed files with 19 additions and 1 deletions

View File

@@ -36,7 +36,7 @@ class Book(models.Model):
title = models.CharField(max_length=200)
authors = models.ManyToManyField(Author)
publisher = models.ForeignKey(Publisher, on_delete=models.CASCADE)
ISBN = models.CharField(max_length=13, blank=True)
ISBN = models.CharField(max_length=17, blank=True) # 13 + dashes
language = models.CharField(
max_length=7,
choices=settings.LANGUAGES,