Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Automatically republish all Django CMS 2.4.2 pages which are already published. For when all pages needed republishing after an upgrade from 2.3.x.
from cms.models.pagemodel import Page
pages = Page.objects.filter(published=True, publisher_is_draft=True)
for page in pages:
print '%s (%d)' % (page,
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.