mirror of
https://github.com/jazzband/django-admin2.git
synced 2026-03-28 03:50:26 +00:00
remove unnecessary exceptions file
This commit is contained in:
parent
69bf7b497e
commit
539dac9957
2 changed files with 6 additions and 4 deletions
|
|
@ -1,2 +0,0 @@
|
|||
class NoAdminSpecified(Exception):
|
||||
pass
|
||||
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue