7

Minor code cleanups

This commit is contained in:
Michael van Tellingen
2017-05-31 14:24:01 +02:00
parent e24cb9aee3
commit 73ea5157ff
2 changed files with 19 additions and 44 deletions

View File

@ -3,8 +3,6 @@ from wagtail.wagtailadmin.forms import WagtailAdminPageForm
class AdminPersonalisablePageForm(WagtailAdminPageForm):
"""The personalisable page form that allows creation of variants."""
def __init__(self, *args, **kwargs):
super(AdminPersonalisablePageForm, self).__init__(*args, **kwargs)
def save(self, commit=True):
"""Save a copy of the original page, linked to a segment.