Wagtail raises ValidationError on page update

独自空忆成欢 提交于 2020-12-15 06:09:34

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!