Removed unused module_name reference in django.contrib.admin.templatetags.adminapplist
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2023 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
40d4782263
commit
ad0b474a8b
|
@ -21,7 +21,6 @@ class AdminApplistNode(template.Node):
|
|||
app_url = "/".join( [comp for comp in app.__name__.split('.') if comp != 'models' ])
|
||||
for m in app._MODELS:
|
||||
if m._meta.admin:
|
||||
module_name = m._meta.module_name
|
||||
perms = {
|
||||
'add': user.has_perm("%s.%s" % (app_label, m._meta.get_add_permission())),
|
||||
'change': user.has_perm("%s.%s" % (app_label, m._meta.get_change_permission())),
|
||||
|
|
Loading…
Reference in New Issue