Browse Source

Changed way admin actions search templates

Ralfp 12 years ago
parent
commit
310122fd2a

+ 1 - 1
misago/admin/widgets.py

@@ -48,7 +48,7 @@ class BaseWidget(object):
         return 'admin_%s' % self.id
          
     def get_template(self, template):
-        return ('%s/%s/%s.html' % (str(self.admin.model.__module__).split('.')[1], str(self.admin.route).lower(), template),
+        return ('%s/%ss/%s.html' % (str(self.admin.model.__module__).split('.')[1], str(self.admin.model.__name__).lower(), template),
                 '%s/%s.html' % (str(self.admin.model.__module__).split('.')[1], template),
                 'admin/%s.html' % template)
             

+ 0 - 0
templates/admin/users/admin_users_newsletters/list.html → templates/admin/users/newsletters/list.html


+ 0 - 0
templates/admin/users/admin_users_pruning/list.html → templates/admin/users/prunings/list.html


+ 0 - 0
templates/admin/users/admin_users_ranks/list.html → templates/admin/users/ranks/list.html


+ 0 - 0
templates/admin/users/admin_users/list.html → templates/admin/users/users/list.html