mirror of
https://github.com/jazzband/django-authority.git
synced 2026-03-16 22:20:28 +00:00
Fix lurking bug in edit_permissions
I don't have a test case, this is just code review; that string extrapolation will always raise.
This commit is contained in:
parent
8c8e478a31
commit
40924e532d
1 changed files with 1 additions and 1 deletions
|
|
@ -66,7 +66,7 @@ def edit_permissions(modeladmin, request, queryset):
|
|||
prefix = "%s-%s" % (FormSet.get_default_prefix(), obj.pk)
|
||||
prefixes[prefix] = prefixes.get(prefix, 0) + 1
|
||||
if prefixes[prefix] != 1:
|
||||
prefix = "%s-%s-%s" % (prefix, prefixes[prefix])
|
||||
prefix = "%s-%s" % (prefix, prefixes[prefix])
|
||||
if request.POST.get('post'):
|
||||
formset = FormSet(data=request.POST, files=request.FILES,
|
||||
instance=obj, prefix=prefix)
|
||||
|
|
|
|||
Loading…
Reference in a new issue