Statistics
| Branch: | Revision:

root / env / lib / python2.7 / site-packages / django / contrib / admin / templatetags / admin_urls.py @ 1a305335

History | View | Annotate | Download (241 Bytes)

1
from django.core.urlresolvers import reverse, NoReverseMatch
2
from django import template
3

    
4
register = template.Library()
5

    
6
@register.filter
7
def admin_urlname(value, arg):
8
    return 'admin:%s_%s_%s' % (value.app_label, value.module_name, arg)