From 8a1c39e43b99b817f569e7a380f5744678c4554e Mon Sep 17 00:00:00 2001 From: Tom Hubrecht Date: Wed, 29 Jun 2022 16:09:50 +0200 Subject: [PATCH] ugettext -> gettext --- gestioncof/admin.py | 2 +- gestioncof/cms/templatetags/cofcms_tags.py | 2 +- gestioncof/forms.py | 2 +- gestioncof/models.py | 2 +- gestioncof/signals.py | 2 +- gestioncof/views.py | 2 +- kfet/auth/apps.py | 2 +- kfet/auth/forms.py | 2 +- kfet/auth/models.py | 2 +- kfet/auth/signals.py | 2 +- kfet/auth/views.py | 2 +- kfet/cms/models.py | 2 +- kfet/forms.py | 2 +- kfet/models.py | 2 +- petitscours/models.py | 2 +- 15 files changed, 15 insertions(+), 15 deletions(-) diff --git a/gestioncof/admin.py b/gestioncof/admin.py index 89e4160d..bb90cf98 100644 --- a/gestioncof/admin.py +++ b/gestioncof/admin.py @@ -6,7 +6,7 @@ from django.contrib.auth.models import Group, Permission, User from django.db.models import Q from django.urls import reverse from django.utils.safestring import mark_safe -from django.utils.translation import ugettext_lazy as _ +from django.utils.translation import gettext_lazy as _ from gestioncof.models import ( Club, diff --git a/gestioncof/cms/templatetags/cofcms_tags.py b/gestioncof/cms/templatetags/cofcms_tags.py index f9e62aed..36774232 100644 --- a/gestioncof/cms/templatetags/cofcms_tags.py +++ b/gestioncof/cms/templatetags/cofcms_tags.py @@ -2,7 +2,7 @@ from datetime import date, timedelta from django import template from django.utils import formats, timezone -from django.utils.translation import ugettext as _ +from django.utils.translation import gettext as _ from ..models import COFActuPage, COFRootPage diff --git a/gestioncof/forms.py b/gestioncof/forms.py index 983bb249..1d482e7f 100644 --- a/gestioncof/forms.py +++ b/gestioncof/forms.py @@ -3,7 +3,7 @@ from django.contrib.auth import get_user_model from django.contrib.auth.forms import AuthenticationForm from django.forms.formsets import BaseFormSet, formset_factory from django.forms.widgets import CheckboxSelectMultiple, RadioSelect -from django.utils.translation import ugettext_lazy as _ +from django.utils.translation import gettext_lazy as _ from djconfig.forms import ConfigForm from bda.models import Spectacle diff --git a/gestioncof/models.py b/gestioncof/models.py index c2c71660..dad77c34 100644 --- a/gestioncof/models.py +++ b/gestioncof/models.py @@ -2,7 +2,7 @@ from django.contrib.auth.models import User from django.db import models from django.db.models.signals import post_delete, post_save from django.dispatch import receiver -from django.utils.translation import ugettext_lazy as _ +from django.utils.translation import gettext_lazy as _ from bda.models import Spectacle from shared.utils import choices_length diff --git a/gestioncof/signals.py b/gestioncof/signals.py index cf4b1f16..deed6ce9 100644 --- a/gestioncof/signals.py +++ b/gestioncof/signals.py @@ -1,7 +1,7 @@ from django.contrib import messages from django.contrib.auth.signals import user_logged_in from django.dispatch import receiver -from django.utils.translation import ugettext_lazy as _ +from django.utils.translation import gettext_lazy as _ from django_cas_ng.signals import cas_user_authenticated diff --git a/gestioncof/views.py b/gestioncof/views.py index fbe74ec7..f7c76f3c 100644 --- a/gestioncof/views.py +++ b/gestioncof/views.py @@ -20,7 +20,7 @@ from django.shortcuts import get_object_or_404, redirect, render from django.template import loader from django.urls import reverse_lazy from django.utils import timezone -from django.utils.translation import ugettext_lazy as _ +from django.utils.translation import gettext_lazy as _ from django.views.generic import FormView, TemplateView from django_cas_ng.views import LogoutView as CasLogoutView from icalendar import Calendar, Event as Vevent diff --git a/kfet/auth/apps.py b/kfet/auth/apps.py index 5b4fe7fd..49e19a26 100644 --- a/kfet/auth/apps.py +++ b/kfet/auth/apps.py @@ -1,6 +1,6 @@ from django.apps import AppConfig from django.db.models.signals import post_migrate -from django.utils.translation import ugettext_lazy as _ +from django.utils.translation import gettext_lazy as _ class KFetAuthConfig(AppConfig): diff --git a/kfet/auth/forms.py b/kfet/auth/forms.py index 33f5a260..74823364 100644 --- a/kfet/auth/forms.py +++ b/kfet/auth/forms.py @@ -1,5 +1,5 @@ from django.contrib.auth.models import User -from django.utils.translation import ugettext_lazy as _ +from django.utils.translation import gettext_lazy as _ from shared.forms import ProtectedModelForm diff --git a/kfet/auth/models.py b/kfet/auth/models.py index 865852cd..70e2de51 100644 --- a/kfet/auth/models.py +++ b/kfet/auth/models.py @@ -1,7 +1,7 @@ from django.contrib.auth.models import Group, Permission from django.db import models from django.utils.crypto import get_random_string -from django.utils.translation import ugettext_lazy as _ +from django.utils.translation import gettext_lazy as _ KFET_APP_LABELS = ["kfet", "kfetauth"] diff --git a/kfet/auth/signals.py b/kfet/auth/signals.py index 3f691068..b1e3fc57 100644 --- a/kfet/auth/signals.py +++ b/kfet/auth/signals.py @@ -3,7 +3,7 @@ from django.contrib.auth.signals import user_logged_in from django.dispatch import receiver from django.urls import reverse from django.utils.safestring import mark_safe -from django.utils.translation import ugettext as _ +from django.utils.translation import gettext_lazy as _ from .utils import get_kfet_generic_user diff --git a/kfet/auth/views.py b/kfet/auth/views.py index f57e8415..15519caa 100644 --- a/kfet/auth/views.py +++ b/kfet/auth/views.py @@ -9,7 +9,7 @@ from django.http import QueryDict from django.shortcuts import redirect, render from django.urls import reverse, reverse_lazy from django.utils.decorators import method_decorator -from django.utils.translation import ugettext_lazy as _ +from django.utils.translation import gettext_lazy as _ from django.views.decorators.http import require_http_methods from django.views.generic import View from django.views.generic.edit import CreateView, UpdateView diff --git a/kfet/cms/models.py b/kfet/cms/models.py index b9061b21..019e53fa 100644 --- a/kfet/cms/models.py +++ b/kfet/cms/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 wagtail.admin.edit_handlers import ( FieldPanel, FieldRowPanel, diff --git a/kfet/forms.py b/kfet/forms.py index 8ab301a1..ae044535 100644 --- a/kfet/forms.py +++ b/kfet/forms.py @@ -8,7 +8,7 @@ from django.core import validators from django.core.exceptions import ValidationError from django.forms import modelformset_factory from django.utils import timezone -from django.utils.translation import ugettext_lazy as _ +from django.utils.translation import gettext_lazy as _ from djconfig.forms import ConfigForm from gestioncof.models import CofProfile diff --git a/kfet/models.py b/kfet/models.py index 7a0ec777..1ce1a9e0 100644 --- a/kfet/models.py +++ b/kfet/models.py @@ -9,7 +9,7 @@ from django.db.models import F from django.template import loader from django.urls import reverse from django.utils import timezone -from django.utils.translation import ugettext_lazy as _ +from django.utils.translation import gettext_lazy as _ from gestioncof.models import CofProfile from shared.utils import choices_length diff --git a/petitscours/models.py b/petitscours/models.py index 8e5d4884..e5ee749a 100644 --- a/petitscours/models.py +++ b/petitscours/models.py @@ -2,7 +2,7 @@ from django.contrib.auth.models import User from django.db import models from django.db.models import Min from django.utils.functional import cached_property -from django.utils.translation import ugettext_lazy as _ +from django.utils.translation import gettext_lazy as _ from shared.utils import choices_length