问题
On publishing updates to an existing wagtail page it raises a ValidationError with the message below.
ValidationError({'live_revision': ['page revision instance with id 33 does not exist.']})
All other actions such as drafting, submitting for moderation all work okay. Only publishing the page with new updates raises the ValidationError effectively limiting the ability to update existing pages.
回答1:
Just faced a very similar issue.
Make sure you are not using ParentalKey
in a Page
model.
Use the regular Django models.ForeignKey
instead.
来源:https://stackoverflow.com/questions/51928023/wagtail-raises-validationerror-on-page-update