[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:
Alex Gaynor 2011-02-02 15:25:57 +00:00
parent e26de119f4
commit 837a2e2773
1 changed files with 1 additions and 1 deletions

View File

@ -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 = []