diff --git a/requirements/base.txt b/requirements/base.txt index ed4c84536..632f9c548 100644 --- a/requirements/base.txt +++ b/requirements/base.txt @@ -1,5 +1,5 @@ bleach[css]==6.0.0 -Django==3.2.20 +Django==4.0 django-allauth==0.54.0 git+https://github.com/liqd/django-autoslug.git@liqd2212#egg=django-autoslug django-ckeditor==6.6.1 diff --git a/tests/project/urls.py b/tests/project/urls.py index f91cde19a..189862938 100644 --- a/tests/project/urls.py +++ b/tests/project/urls.py @@ -1,5 +1,5 @@ from django.contrib import admin -from django.contrib.auth import views +from django.contrib.auth.views import LoginView from django.urls import include from django.urls import path from rest_framework import routers @@ -31,6 +31,6 @@ path("admin/", admin.site.urls), path("projects/", include(prj_urls)), path("modules/", include(mod_urls)), - path("accounts/login", views.LoginView, name="account_login"), + path("accounts/login", LoginView.as_view(), name="account_login"), path("dashboard/", include(dashboard_urls)), ]