Fixed #15212 -- ensure that ModelAdmin.get_actions still returns a SortedDict if there are no actions.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@15393 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
dc5f2607de
commit
05e3bf4bef
|
@ -547,7 +547,7 @@ class ModelAdmin(BaseModelAdmin):
|
||||||
# want *any* actions enabled on this page.
|
# want *any* actions enabled on this page.
|
||||||
from django.contrib.admin.views.main import IS_POPUP_VAR
|
from django.contrib.admin.views.main import IS_POPUP_VAR
|
||||||
if self.actions is None or IS_POPUP_VAR in request.GET:
|
if self.actions is None or IS_POPUP_VAR in request.GET:
|
||||||
return []
|
return SortedDict()
|
||||||
|
|
||||||
actions = []
|
actions = []
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue