Our great sponsors
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
I am migrating a bunch of articles in an XML file to a new Wagtail and have created a management command to handle populating all of my model fields. All of my pages are published correctly using new_page.save_revision().publish() new_page.save_revision() but the issue is that the draftail richtextform doesnt get hit and the formatting is off. It looks good but if you go in and manually hit publish again, then all the formatting gets messed up when it gets passed through the draftail form. I am trying to figure out how to manually make it publish through draftail but I cant figure out how. This question on github is the same issue that I have but it didnt get answered: https://github.com/wagtail/wagtail/issues/6359.