Fixes field causing form invalidation when editing books
This commit is contained in:
parent
56638f79cf
commit
9bbedc5d9a
4 changed files with 31 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue