mirror of
https://github.com/django-helpdesk/django-helpdesk.git
synced 2025-01-05 21:49:24 +01:00
Fix error on python 2
This commit is contained in:
parent
d18ce1f1d5
commit
4b78704180
@ -20,7 +20,9 @@ def get_staff_user(username='helpdesk.staff', password='password'):
|
|||||||
|
|
||||||
def reload_urlconf(urlconf=None):
|
def reload_urlconf(urlconf=None):
|
||||||
|
|
||||||
from importlib import reload # python 3 needs this import.
|
from django.utils import six
|
||||||
|
if six.PY3:
|
||||||
|
from importlib import reload
|
||||||
|
|
||||||
if urlconf is None:
|
if urlconf is None:
|
||||||
from django.conf import settings
|
from django.conf import settings
|
||||||
|
Loading…
Reference in New Issue
Block a user