#29917: admin.E130 (__name__ uniqueness) regression
-------------------------------------+-------------------------------------
     Reporter:  Matthias Kestenholz  |                    Owner:  nobody
         Type:  Bug                  |                   Status:  new
    Component:  contrib.admin        |                  Version:  master
     Severity:  Normal               |               Resolution:
     Keywords:                       |             Triage Stage:
                                     |  Unreviewed
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by Carlton Gibson):

 `_get_base_actions()` was added for #29419 (to allow permissions on
 actions, as part of v2.1 adding the "view" permission for the admin).

 The
 
[https://github.com/django/django/blob/5a2dd5ec5330938e9afb77faf6ca89abf39c018c/django/contrib/admin/options.py#L863-L867
 underlying block] here is long-standing:

 {{{
         # Then gather them from the model admin and all parent classes,
         # starting with self and working back up.
         for klass in self.__class__.mro()[::-1]:
             class_actions = getattr(klass, 'actions', []) or []
             actions.extend(self.get_action(action) for action in
 class_actions)
 }}}

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

Reply via email to