1 from django
.core
.urlresolvers
import reverse
2 from django
import template
3 from django
.contrib
.admin
.util
import quote
5 register
= template
.Library()
8 def admin_urlname(value
, arg
):
9 return 'admin:%s_%s_%s' % (value
.app_label
, value
.module_name
, arg
)
13 def admin_urlquote(value
):