Fixes field causing form invalidation when editing books

This commit is contained in:
Mouse Reeve
2020-11-24 13:25:28 -08:00
parent 56638f79cf
commit 9bbedc5d9a
4 changed files with 31 additions and 2 deletions

View File

@ -15,7 +15,7 @@ from .base_model import ActivitypubMixin, OrderedCollectionPageMixin
class Book(ActivitypubMixin, BookWyrmModel):
''' a generic book, which can mean either an edition or a work '''
origin_id = models.CharField(max_length=255, null=True)
origin_id = models.CharField(max_length=255, null=True, blank=True)
# these identifiers apply to both works and editions
openlibrary_key = models.CharField(max_length=255, blank=True, null=True)
librarything_key = models.CharField(max_length=255, blank=True, null=True)