mirror of
https://gitea.mueller.network/extern/django-helpdesk.git
synced 2024-11-22 07:53:19 +01:00
Fix for no model_name in django < 1.6
This commit is contained in:
parent
15feb7def3
commit
eef2a66f23
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user