Commits

Mark Finger  committed a05a208

Tweak to __name__ instead of meta.verbose_plural_name.

  • Participants
  • Parent commits 08fd5a5

Comments (0)

Files changed (1)

File admin_tools/utils.py

                 model, perms = item
                 if fnmatch(full_name(model), pattern) and item not in included:
                     pattern_items.append(item)
-            pattern_items.sort(key=lambda x:x[0]._meta.verbose_name_plural)
+            pattern_items.sort(key=lambda x:x[0].__name__)
             included.extend(pattern_items)
     
     result = included[:]