Commits

Mark Finger committed 8c101f2

Fixed an attribute error that slipped through.

  • Participants
  • Parent commits 354cb22

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_plural_name.lower())
+            pattern_items.sort(key=lambda x:x[0]._meta.verbose_name_plural.lower())
             included.extend(pattern_items)
     
     result = included[:]