We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
https://guide.wagtail.org/admin/pages/213/view_draft/
If a page has never been published, we can’t use the live preview, nor view_draft.
view_draft
Perhaps related to wagtail-localise field replacement not happening for drafts
The text was updated successfully, but these errors were encountered:
This is probably because of the following code
guide/apps/core/models/content.py
Lines 47 to 55 in 195797c
It doesn't return the context at all if the page is not live. It should be changed to something like
def get_context(self, request, *args, **kwargs): context = super().get_context(request, *args, **kwargs) if self.live and self.show_in_menus: pages = Page.objects.live().in_menu() context.update( previous=pages.filter(path__lt=self.path).last(), next=pages.filter(path__gt=self.path).first(), ) return context
Sorry, something went wrong.
No branches or pull requests
https://guide.wagtail.org/admin/pages/213/view_draft/
If a page has never been published, we can’t use the live preview, nor
view_draft
.Perhaps related to wagtail-localise field replacement not happening for drafts
The text was updated successfully, but these errors were encountered: