mirror of
https://github.com/django-helpdesk/django-helpdesk.git
synced 2025-08-14 10:08:28 +02:00
Bump version to 0.2.6 to fix remaining Django 2.0 warnings
This commit is contained in:
@ -20,7 +20,7 @@ def get_staff_user(username='helpdesk.staff', password='password'):
|
||||
|
||||
def reload_urlconf(urlconf=None):
|
||||
|
||||
from imp import reload # python 3 needs this import.
|
||||
from importlib import reload # python 3 needs this import.
|
||||
|
||||
if urlconf is None:
|
||||
from django.conf import settings
|
||||
@ -33,7 +33,7 @@ def reload_urlconf(urlconf=None):
|
||||
if urlconf in sys.modules:
|
||||
reload(sys.modules[urlconf])
|
||||
|
||||
from django.core.urlresolvers import clear_url_caches
|
||||
from django.urls import clear_url_caches
|
||||
clear_url_caches()
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user