remove unnecessary exceptions file

This commit is contained in:
Daniel Greenfeld 2013-05-19 14:26:03 +02:00
parent 69bf7b497e
commit 539dac9957
2 changed files with 6 additions and 4 deletions

View file

@ -1,2 +0,0 @@
class NoAdminSpecified(Exception):
pass

View file

@ -4,5 +4,9 @@ register = template.Library()
@register.filter
def admin2_urlname(value, arg):
return 'admin2:%s_%s_%s' % (value.app_label, value.model_name, arg)
def admin2_urlname(view, action):
"""
Converts the view and the specified action into a valid namespaced URLConf name.
"""
return 'admin2:%s_%s_%s' % (view.app_label, view.model_name, action)