Add comment about why setting self.object is required

pull/3824/merge
Karl Hobley 2017-09-29 12:08:34 +01:00 zatwierdzone przez Matt Westcott
rodzic e83eb0b32b
commit 1c13461004
1 zmienionych plików z 1 dodań i 0 usunięć
wagtail/wagtailusers/views

Wyświetl plik

@ -111,6 +111,7 @@ class CreateView(PermissionPanelFormsMixin, generic.CreateView):
Handle POST requests: instantiate a form instance with the passed
POST variables and then check if it's valid.
"""
# Create an object now so that the permission panel forms have something to link them against
self.object = Group()
form = self.get_form()