diff --git a/example/custom_accounts/admin.py b/example/custom_accounts/admin.py index 5a51b6a..28874c0 100644 --- a/example/custom_accounts/admin.py +++ b/example/custom_accounts/admin.py @@ -1,5 +1,5 @@ from django.contrib import admin -from django.utils.translation import ugettext, ugettext_lazy as _ +from django.utils.translation import gettext, gettext_lazy as _ from django.contrib.auth.admin import UserAdmin from .models import User diff --git a/example/custom_accounts/apps.py b/example/custom_accounts/apps.py index ac3e0c2..c135c37 100644 --- a/example/custom_accounts/apps.py +++ b/example/custom_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 Custom_AccountsConfig(AppConfig): diff --git a/example/custom_accounts/models.py b/example/custom_accounts/models.py index c863ea9..0e5c926 100644 --- a/example/custom_accounts/models.py +++ b/example/custom_accounts/models.py @@ -2,7 +2,7 @@ from django.contrib.auth.models import AbstractUser from django.contrib.contenttypes.models import ContentType from django.db import models -from django.utils.translation import ugettext_lazy as _ +from django.utils.translation import gettext_lazy as _ _custom_perm = ( diff --git a/example/custom_accounts/views.py b/example/custom_accounts/views.py index aec8cb8..fe5db1c 100644 --- a/example/custom_accounts/views.py +++ b/example/custom_accounts/views.py @@ -6,7 +6,7 @@ from .models import * from .forms import * -from django.utils.translation import ugettext_lazy as _ +from django.utils.translation import gettext_lazy as _ from django.core.exceptions import ValidationError from django.template import RequestContext diff --git a/requirements.txt b/requirements.txt index 4fc59d8..d2111a6 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,4 @@ -django>=2.2.24,<4.0 +django>=4.2 # hint before: pip install -U setuptools cffi @@ -7,4 +7,8 @@ cffi djangosaml2>=1.0.0 # For command update_idps.py -requests +requests~=2.31.0 + +pysaml2~=7.4.2 +pytz~=2023.3 +setuptools==68.0.0