kopia lustrzana https://github.com/wagtail/wagtail
Add comment about why setting self.object is required
rodzic
e83eb0b32b
commit
1c13461004
wagtail/wagtailusers/views
|
@ -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()
|
||||
|
|
Ładowanie…
Reference in New Issue