mirror of
https://github.com/Hopiu/wagtail.git
synced 2026-04-11 02:20:59 +00:00
Pass fields attribute to inlineformset_factory
This commit is contained in:
parent
80cb6e16e7
commit
8d9e72de09
1 changed files with 4 additions and 2 deletions
|
|
@ -83,7 +83,8 @@ def create(request):
|
|||
Group,
|
||||
GroupPagePermission,
|
||||
formset=BaseGroupPagePermissionFormSet,
|
||||
extra=0
|
||||
extra=0,
|
||||
fields=('page', 'permission_type'),
|
||||
)
|
||||
if request.POST:
|
||||
form = GroupForm(request.POST)
|
||||
|
|
@ -115,7 +116,8 @@ def edit(request, group_id):
|
|||
Group,
|
||||
GroupPagePermission,
|
||||
formset=BaseGroupPagePermissionFormSet,
|
||||
extra=0
|
||||
extra=0,
|
||||
fields=('page', 'permission_type'),
|
||||
)
|
||||
if request.POST:
|
||||
form = GroupForm(request.POST, instance=group)
|
||||
|
|
|
|||
Loading…
Reference in a new issue