Fixes infinite recursion when loading books
Also fixes bug in serializing page nubmers
This commit is contained in:
parent
2799ed68e3
commit
04ba5abf45
3 changed files with 13 additions and 2 deletions
|
@ -92,7 +92,8 @@ class Work(OrderedCollectionPageMixin, Book):
|
|||
default_edition = fields.ForeignKey(
|
||||
'Edition',
|
||||
on_delete=models.PROTECT,
|
||||
null=True
|
||||
null=True,
|
||||
load_remote=False
|
||||
)
|
||||
|
||||
def get_default_edition(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue