# Manage.py shell után kell soronként bemásolnifromwagtail.core.modelsimportPageparent=Page.objects.get(pk=<id>)qs=parent.get_children()foroinqs:o.get_latest_revision().publish(user=o.owner,log_action='wagtail.publish.scheduled')print(o.id,o.title)
Comments (0)
HTTPSSSH
You can clone a snippet to your computer for local editing.
Learn more.