From 18e241065297c7452a0d8ad2064e8ae418e2092d Mon Sep 17 00:00:00 2001
From: Marco Ciotola <848222@stud.unive.it>
Date: Tue, 5 Mar 2019 01:48:49 +0100
Subject: [PATCH] [DJ1.10] reverse function is now in django.urls

---
 helios/security.py                      | 2 +-
 helios/stats_views.py                   | 2 +-
 helios/views.py                         | 2 +-
 helios_auth/auth_systems/cas.py         | 2 +-
 helios_auth/auth_systems/linkedin.py    | 2 +-
 helios_auth/auth_systems/openid/util.py | 2 +-
 helios_auth/auth_systems/password.py    | 2 +-
 helios_auth/auth_systems/twitter.py     | 2 +-
 helios_auth/tests.py                    | 2 +-
 helios_auth/views.py                    | 2 +-
 10 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/helios/security.py b/helios/security.py
index 0e1861d..116c013 100644
--- a/helios/security.py
+++ b/helios/security.py
@@ -7,7 +7,7 @@ Ben Adida (ben@adida.net)
 # nicely update the wrapper function
 from functools import update_wrapper
 
-from django.core.urlresolvers import reverse
+from django.urls import reverse
 from django.core.exceptions import PermissionDenied
 from django.http import Http404
 from django.conf import settings
diff --git a/helios/stats_views.py b/helios/stats_views.py
index 9d19dd6..5e71a32 100644
--- a/helios/stats_views.py
+++ b/helios/stats_views.py
@@ -5,7 +5,7 @@ Helios stats views
 import datetime
 
 from django.core.paginator import Paginator
-from django.core.urlresolvers import reverse
+from django.urls import reverse
 from django.db.models import Max, Count
 from django.http import HttpResponseRedirect
 
diff --git a/helios/views.py b/helios/views.py
index 4234c6e..72ae93f 100644
--- a/helios/views.py
+++ b/helios/views.py
@@ -5,7 +5,7 @@ Helios Django Views
 Ben Adida (ben@adida.net)
 """
 
-from django.core.urlresolvers import reverse
+from django.urls import reverse
 from django.core.paginator import Paginator
 from django.core.exceptions import PermissionDenied
 from django.http import HttpResponse, Http404, HttpResponseRedirect, HttpResponseForbidden
diff --git a/helios_auth/auth_systems/cas.py b/helios_auth/auth_systems/cas.py
index cb10fac..dd4216b 100644
--- a/helios_auth/auth_systems/cas.py
+++ b/helios_auth/auth_systems/cas.py
@@ -36,7 +36,7 @@ def _get_service_url():
   # FIXME current URL
   from helios_auth import url_names
   from django.conf import settings
-  from django.core.urlresolvers import reverse
+  from django.urls import reverse
   
   return settings.SECURE_URL_HOST + reverse(url_names.AUTH_AFTER)
   
diff --git a/helios_auth/auth_systems/linkedin.py b/helios_auth/auth_systems/linkedin.py
index 32b0033..696eda9 100644
--- a/helios_auth/auth_systems/linkedin.py
+++ b/helios_auth/auth_systems/linkedin.py
@@ -4,7 +4,7 @@ LinkedIn Authentication
 
 from oauthclient import client
 
-from django.core.urlresolvers import reverse
+from django.urls import reverse
 from django.http import HttpResponseRedirect
 
 from helios_auth import utils
diff --git a/helios_auth/auth_systems/openid/util.py b/helios_auth/auth_systems/openid/util.py
index 277b92c..1ed33f3 100644
--- a/helios_auth/auth_systems/openid/util.py
+++ b/helios_auth/auth_systems/openid/util.py
@@ -10,7 +10,7 @@ from django.template.context import RequestContext
 from django.template import loader
 from django import http
 from django.core.exceptions import ImproperlyConfigured
-from django.core.urlresolvers import reverse as reverseURL
+from django.urls import reverse as reverseURL
 
 from django.conf import settings
 
diff --git a/helios_auth/auth_systems/password.py b/helios_auth/auth_systems/password.py
index 6204f1d..aadb03f 100644
--- a/helios_auth/auth_systems/password.py
+++ b/helios_auth/auth_systems/password.py
@@ -2,7 +2,7 @@
 Username/Password Authentication
 """
 
-from django.core.urlresolvers import reverse
+from django.urls import reverse
 from django import forms
 from django.core.mail import send_mail
 from django.conf import settings
diff --git a/helios_auth/auth_systems/twitter.py b/helios_auth/auth_systems/twitter.py
index b59cd38..8739d60 100644
--- a/helios_auth/auth_systems/twitter.py
+++ b/helios_auth/auth_systems/twitter.py
@@ -5,7 +5,7 @@ Twitter Authentication
 from oauthclient import client
 
 from django.conf.urls import url
-from django.core.urlresolvers import reverse
+from django.urls import reverse
 from django.http import HttpResponseRedirect
 
 from helios_auth import utils
diff --git a/helios_auth/tests.py b/helios_auth/tests.py
index 824dc53..de21e3b 100644
--- a/helios_auth/tests.py
+++ b/helios_auth/tests.py
@@ -91,7 +91,7 @@ class UserModelTests(unittest.TestCase):
 
 import views
 import auth_systems.password as password_views
-from django.core.urlresolvers import reverse
+from django.urls import reverse
 
 # FIXME: login CSRF should make these tests more complicated
 # and should be tested for
diff --git a/helios_auth/views.py b/helios_auth/views.py
index 2761447..f246daf 100644
--- a/helios_auth/views.py
+++ b/helios_auth/views.py
@@ -6,7 +6,7 @@ Ben Adida
 """
 
 import urllib
-from django.core.urlresolvers import reverse
+from django.urls import reverse
 from django.http import HttpResponseRedirect, HttpResponse
 
 import helios_auth
-- 
GitLab