#29723: Admin crashes if InlineModelAdmin.has_add_permission() doesn't accept 
the
obj argument
-------------------------------------+-------------------------------------
     Reporter:  Aymeric Augustin     |                    Owner:  Tim
                                     |  Graham
         Type:  Bug                  |                   Status:  closed
    Component:  contrib.admin        |                  Version:  2.1
     Severity:  Release blocker      |               Resolution:  fixed
     Keywords:                       |             Triage Stage:  Ready for
                                     |  checkin
    Has patch:  1                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by Carlton Gibson <carlton.gibson@…>):

 In [changeset:"152b1d783bfcf1bab8a038999e1f848a1b4384ef" 152b1d78]:
 {{{
 #!CommitTicketReference repository=""
 revision="152b1d783bfcf1bab8a038999e1f848a1b4384ef"
 [2.1.x] Fixed #29723 -- Fixed crash if
 InlineModelAdmin.has_add_permission() doesn't accept the obj argument.

 * Refs #27991 -- Added testing for ModelAdmin.get_inline_instances() if
 the inline's has_add_permission() doesn't accept 'obj'.

 * Fixed #29723 -- Fixed crash if InlineModelAdmin.has_add_permission()
 doesn't accept the obj argument.

 Backport of fd8a7a5313f5e223212085b2e470e43c0047e066 from master
 }}}

-- 
Ticket URL: <https://code.djangoproject.com/ticket/29723#comment:7>
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/067.36f668a282475f5fb17e81d378e2b80a%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to