Compare commits

..

2 commits

Author SHA1 Message Date
9eacf8c19b Merge pull request 'Rename get_next_page to get_success_url' (#59) from update into master
Reviewed-on: #59
2024-07-04 23:14:29 +02:00
sinavir
2fdb73e485 Rename get_next_page to get_success_url and update pyproject
From django 4.1, this function has been renamed
(https://docs.djangoproject.com/en/4.2/releases/4.1/)
2024-07-04 23:12:50 +02:00
2 changed files with 5 additions and 6 deletions

View file

@ -16,9 +16,8 @@ classifiers = [
"Development Status :: 4 - Beta", "Development Status :: 4 - Beta",
"Environment :: Web Environment", "Environment :: Web Environment",
"Framework :: Django", "Framework :: Django",
"Framework :: Django :: 2.2", "Framework :: Django :: 4.1",
"Framework :: Django :: 3.1", "Framework :: Django :: 4.2",
"Framework :: Django :: 3.2",
"Intended Audience :: Developers", "Intended Audience :: Developers",
"License :: OSI Approved :: MIT License", "License :: OSI Approved :: MIT License",
"Operating System :: OS Independent", "Operating System :: OS Independent",
@ -33,7 +32,7 @@ classifiers = [
"Topic :: Internet :: WWW/HTTP :: Dynamic Content", "Topic :: Internet :: WWW/HTTP :: Dynamic Content",
] ]
dependencies = [ dependencies = [
"django >= 2.2", "django >= 4.1",
"python-ldap >= 3, < 4", "python-ldap >= 3, < 4",
"python-cas >= 1.5, < 2", "python-cas >= 1.5, < 2",
] ]

View file

@ -138,8 +138,8 @@ class LogoutView(auth_views.LogoutView):
else: else:
self.cas_connected = False self.cas_connected = False
def get_next_page(self): def get_success_url(self):
next_page = super().get_next_page() next_page = super().get_success_url()
if self.cas_connected: if self.cas_connected:
cas_client = get_cas_client(self.request) cas_client = get_cas_client(self.request)