Browse files

[1.2.X] Fixed #15212 -- ensure that ModelAdmin.get_actions still retu…

…rns a SortedDict if there are no actions. Backport of [15393].

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@15394 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent e26de11 commit 837a2e2773125fcda0c419597b2c19a3d05b4879 @alex alex committed Feb 2, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 django/contrib/admin/options.py
View
2 django/contrib/admin/options.py
@@ -536,7 +536,7 @@ def get_actions(self, request):
# If self.actions is explicitally set to None that means that we don't
# want *any* actions enabled on this page.
if self.actions is None:
- return []
+ return SortedDict()
actions = []

0 comments on commit 837a2e2

Please sign in to comment.