Fixes infinite recursion when loading books

Also fixes bug in serializing page nubmers
This commit is contained in:
Mouse Reeve
2020-12-17 12:02:59 -08:00
parent 2799ed68e3
commit 04ba5abf45
3 changed files with 13 additions and 2 deletions

View File

@ -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):