From: Radek Czajka Date: Sat, 15 Jun 2024 10:46:59 +0000 (+0200) Subject: Upgrades. X-Git-Url: https://git.mdrn.pl/cas.git/commitdiff_plain/03030c3704cee759f7111716874c6b8007a71329?hp=db7516d6dd2c1613cb73690b873502171349f966 Upgrades. --- diff --git a/requirements.txt b/requirements.txt index 9a1e947..52ea8e6 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,6 +1,6 @@ -i https://py.mdrn.pl/simple/ -Django==3.2.18 +Django==4.1.13 django-gravatar2==1.4.4 django-oidc-provider2==0.9.1 -django-cas-provider==23.3 +django-cas-provider==24.6 diff --git a/src/accounts/apps.py b/src/accounts/apps.py index c052eff..c54d781 100644 --- a/src/accounts/apps.py +++ b/src/accounts/apps.py @@ -1,5 +1,5 @@ from django.apps import AppConfig -from django.utils.translation import ugettext_lazy as _ +from django.utils.translation import gettext_lazy as _ class AccountsConfig(AppConfig): diff --git a/src/accounts/urls.py b/src/accounts/urls.py index 7584fc1..51f344e 100644 --- a/src/accounts/urls.py +++ b/src/accounts/urls.py @@ -1,7 +1,7 @@ -from django.conf.urls import url +from django.urls import path from . import views urlpatterns = [ - url(r'^$', views.ProfileView.as_view(), name='accounts_profile'), + path('', views.ProfileView.as_view(), name='accounts_profile'), ] diff --git a/src/accounts/views.py b/src/accounts/views.py index 2b049e4..1b4a705 100644 --- a/src/accounts/views.py +++ b/src/accounts/views.py @@ -1,6 +1,6 @@ from django.contrib.auth.mixins import LoginRequiredMixin from django.contrib import messages -from django.utils.translation import ugettext as _ +from django.utils.translation import gettext as _ from django.views.generic.edit import UpdateView from accounts.forms import UserBasicForm diff --git a/src/emails/apps.py b/src/emails/apps.py index 5ca33e9..dbaad77 100644 --- a/src/emails/apps.py +++ b/src/emails/apps.py @@ -1,5 +1,5 @@ from django.apps import AppConfig -from django.utils.translation import ugettext_lazy as _ +from django.utils.translation import gettext_lazy as _ class EmailsConfig(AppConfig): diff --git a/src/emails/models.py b/src/emails/models.py index e64e423..5375a7c 100644 --- a/src/emails/models.py +++ b/src/emails/models.py @@ -1,5 +1,5 @@ from django.db import models -from django.utils.translation import ugettext_lazy as _ +from django.utils.translation import gettext_lazy as _ from . import BASE_DOMAINS diff --git a/src/services/apps.py b/src/services/apps.py index 3c1815d..b516167 100644 --- a/src/services/apps.py +++ b/src/services/apps.py @@ -1,5 +1,5 @@ from django.apps import AppConfig -from django.utils.translation import ugettext_lazy as _ +from django.utils.translation import gettext_lazy as _ class ServicesConfig(AppConfig): diff --git a/src/services/models.py b/src/services/models.py index 3261257..fc40bf8 100644 --- a/src/services/models.py +++ b/src/services/models.py @@ -3,7 +3,7 @@ from django.conf import settings from django.contrib.auth.models import User from django.db import models from django.urls import reverse -from django.utils.translation import ugettext_lazy as _ +from django.utils.translation import gettext_lazy as _ class Service(models.Model): diff --git a/src/ssh_keys/apps.py b/src/ssh_keys/apps.py index f49fcb4..1271268 100644 --- a/src/ssh_keys/apps.py +++ b/src/ssh_keys/apps.py @@ -1,5 +1,5 @@ from django.apps import AppConfig -from django.utils.translation import ugettext_lazy as _ +from django.utils.translation import gettext_lazy as _ class SshKeysConfig(AppConfig): diff --git a/src/ssh_keys/models.py b/src/ssh_keys/models.py index 3bd49f8..7e7d8a0 100644 --- a/src/ssh_keys/models.py +++ b/src/ssh_keys/models.py @@ -1,6 +1,6 @@ from django.conf import settings from django.db import models -from django.utils.translation import ugettext_lazy as _ +from django.utils.translation import gettext_lazy as _ from .utils import get_key_details diff --git a/src/ssh_keys/views.py b/src/ssh_keys/views.py index dc16286..f2cda1b 100644 --- a/src/ssh_keys/views.py +++ b/src/ssh_keys/views.py @@ -7,7 +7,7 @@ from django.db.models import Q from django import http from django.shortcuts import get_object_or_404 from django.utils.timezone import now -from django.utils.translation import ugettext as _ +from django.utils.translation import gettext as _ from django.views.decorators.csrf import csrf_exempt from django.views.generic import ListView, CreateView, DeleteView from services.models import Service