diff --git a/django/contrib/admin/options.py b/django/contrib/admin/options.py
index 7cb1aac..9b3b677 100644
a
|
b
|
from django.utils.text import capfirst, get_text_list
|
19 | 19 | from django.utils.translation import ugettext as _ |
20 | 20 | from django.utils.translation import ngettext, ugettext_lazy |
21 | 21 | from django.utils.encoding import force_unicode |
| 22 | from django.utils.datastructures import SortedDict |
22 | 23 | try: |
23 | 24 | set |
24 | 25 | except NameError: |
… |
… |
class ModelAdmin(BaseModelAdmin):
|
419 | 420 | Return a dictionary mapping the names of all actions for this |
420 | 421 | ModelAdmin to a tuple of (callable, name, description) for each action. |
421 | 422 | """ |
422 | | actions = {} |
| 423 | actions = SortedDict() |
423 | 424 | for klass in [self.admin_site] + self.__class__.mro()[::-1]: |
424 | 425 | for action in getattr(klass, 'actions', []): |
425 | 426 | func, name, description = self.get_action(action) |