Kaydet (Commit) 05e3bf4b authored tarafından Alex Gaynor's avatar Alex Gaynor

Fixed #15212 -- ensure that ModelAdmin.get_actions still returns a SortedDict if…

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
üst dc5f2607
...@@ -547,7 +547,7 @@ class ModelAdmin(BaseModelAdmin): ...@@ -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 = []
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment