  register = template.Library()
  
  @register.filter
  def admin_urlname(value, arg):
      return 'admin:%s_%s_%s' % (value.app_label, value.module_name, arg)
  
  
  @register.filter
  def admin_urlquote(value):
      return quote(value)
 
</s> remove from django.core.urlresolvers import reverse
 </s> add  </s> remove         return 'add_%s' % self.object_name.lower()
 </s> add         return 'add_%s' % self.model_name </s> remove         info = self.model._meta.app_label, self.model._meta.module_name
 </s> add         info = self.model._meta.app_label, self.model._meta.model_name </s> remove         info = self.model._meta.app_label, self.model._meta.module_name
 </s> add         info = self.model._meta.app_label, self.model._meta.model_name </s> remove         return 'change_%s' % self.object_name.lower()
 </s> add         return 'change_%s' % self.model_name
    return 'admin:%s_%s_%s' % (value.app_label, value.model_name, arg)
  register = template.Library()
  
  @register.filter
  def admin_urlname(value, arg):
    return 'admin:%s_%s_%s' % (value.app_label, value.model_name, arg)
  
  
  @register.filter
  def admin_urlquote(value):
      return quote(value)
keep keep keep keep replace keep keep keep keep keep
 Fixed #19689 -- Renamed `Model._meta.module_name` to `model_name`. 
django/contrib/admin/templatetags/admin_urls.py