|
@@ -48,7 +48,7 @@ class BaseWidget(object):
|
|
return 'admin_%s' % self.id
|
|
return 'admin_%s' % self.id
|
|
|
|
|
|
def get_template(self, template):
|
|
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),
|
|
'%s/%s.html' % (str(self.admin.model.__module__).split('.')[1], template),
|
|
'admin/%s.html' % template)
|
|
'admin/%s.html' % template)
|
|
|
|
|