#29637: KeyError on empty_form.fields in InlineAdminFormSet when user don't have
'add' permission for the child model
-------------------------------------+-------------------------------------
     Reporter:  Clément Mangin       |                    Owner:  nobody
         Type:  Bug                  |                   Status:  new
    Component:  contrib.admin        |                  Version:  2.1
     Severity:  Normal               |               Resolution:
     Keywords:  admin, permission,   |             Triage Stage:
  inline                             |  Unreviewed
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by Clément Mangin):

 After running some tests, the exception occurs when using
 `admin.TabularInline`, but does not occur when using
 `admin.StackedInline`.

 The Django tests suit shows the same error I get with tests
 `test_inline_change_fk_change_del_perm` and
 `test_inline_change_fk_change_perm` in
 `admin_inlines.tests.TestInlinePermissions`, after editing
 `admin.InnerInline2` to inherit `admin.TabularInline` instead of
 `admin.StackedInline`.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/29637#comment:2>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/071.dfb428f8afd3c0ae3fabd2f702e90676%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to