[1.2.X] Fixed #15212 -- ensure that ModelAdmin.get_actions still returns 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
This commit is contained in:
parent
e26de119f4
commit
837a2e2773
|
@ -536,7 +536,7 @@ class ModelAdmin(BaseModelAdmin):
|
|||
# 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 = []
|
||||
|
||||
|
|
Loading…
Reference in New Issue