mirror of
https://gitea.mueller.network/extern/django-helpdesk.git
synced 2024-11-22 16:03:19 +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):
|
||||
|
||||
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:
|
||||
from django.conf import settings
|
||||
|
Loading…
Reference in New Issue
Block a user