#27991: Add 'obj' kwarg to InlineModelAdmin's.has_add_permission()
--------------------------------------+------------------------------------
     Reporter:  Olivier               |                    Owner:  nobody
         Type:  Cleanup/optimization  |                   Status:  new
    Component:  contrib.admin         |                  Version:  1.10
     Severity:  Normal                |               Resolution:
     Keywords:                        |             Triage Stage:  Accepted
    Has patch:  0                     |      Needs documentation:  0
  Needs tests:  0                     |  Patch needs improvement:  0
Easy pickings:  0                     |                    UI/UX:  0
--------------------------------------+------------------------------------
Changes (by Tim Graham):

 * component:  Uncategorized => contrib.admin
 * type:  Uncategorized => Cleanup/optimization
 * stage:  Unreviewed => Accepted


Comment:

 Seems okay at first glance. For backwards compatibility, each
 `has_add_permission()`call that starts passing `obj` needs to check if the
 `has_add_permission()` method accepts an `obj` parameter and give a
 deprecation warning if not; see a7c256cb5491bf2a77abdff01638239db5bfd9d5
 for a similar deprecation.

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

Reply via email to