From eef2a66f23397b69cc0350d0c34595d3a5413b46 Mon Sep 17 00:00:00 2001 From: Tom Graham Date: Wed, 22 Oct 2014 17:35:24 +1100 Subject: [PATCH] Fix for no model_name in django < 1.6 --- helpdesk/templatetags/user_admin_url.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helpdesk/templatetags/user_admin_url.py b/helpdesk/templatetags/user_admin_url.py index 783ad510..5a62f0bd 100644 --- a/helpdesk/templatetags/user_admin_url.py +++ b/helpdesk/templatetags/user_admin_url.py @@ -15,7 +15,7 @@ from django.contrib.auth import get_user_model def user_admin_url(action): user = get_user_model() return 'admin:%s_%s_%s' % ( - user._meta.app_label, user._meta.model_name, + user._meta.app_label, user._meta.module_name.lower(), action) register = template.Library()