Commits

Dmitri Lebedev committed 8b1d897

variable name in templates_list

Comments (0)

Files changed (1)

example/django_inline/__init__.py

-def templates_list(name, obj):
+def templates_list(template_name, obj):
 	return [
-		'%s/%s/%s' % (obj._meta.app_label, obj.__class__.__name__, name),
-		'%s/%s' % (obj._meta.app_label, name),
-		name,
+		'%s/%s/%s' % (obj._meta.app_label, obj.__class__.__name__, template_name),
+		'%s/%s' % (obj._meta.app_label, template_name),
+		template_name,
 	]