diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 1ebd7dc..d47d54e 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -14,6 +14,10 @@ Change Log Unreleased ~~~~~~~~~~ +[2.2.1] - 2021-20-12 +~~~~~~~~~~~~~~~~~~~~ +* Replaced deprecated 'django.utils.translation.ugettext' with 'django.utils.translation.gettext' + [2.2.0] - 2021-07-14 ~~~~~~~~~~~~~~~~~~~~ * Added support for django3.2 diff --git a/config_models/__init__.py b/config_models/__init__.py index 5a475fc..e44b51e 100644 --- a/config_models/__init__.py +++ b/config_models/__init__.py @@ -2,6 +2,6 @@ Configuration models for Django allowing config management with auditing. """ -__version__ = '2.2.0' +__version__ = '2.2.1' default_app_config = 'config_models.apps.ConfigModelsConfig' # pylint: disable=invalid-name diff --git a/config_models/admin.py b/config_models/admin.py index 777a761..d120b1c 100644 --- a/config_models/admin.py +++ b/config_models/admin.py @@ -12,7 +12,7 @@ from django.shortcuts import get_object_or_404 from django.urls import reverse from django.utils.html import format_html -from django.utils.translation import ugettext_lazy as _ +from django.utils.translation import gettext_lazy as _ try: cache = caches['configuration'] diff --git a/config_models/management/commands/populate_model.py b/config_models/management/commands/populate_model.py index 160f597..863978c 100644 --- a/config_models/management/commands/populate_model.py +++ b/config_models/management/commands/populate_model.py @@ -4,7 +4,7 @@ import os from django.core.management.base import BaseCommand, CommandError -from django.utils.translation import ugettext_lazy as _ +from django.utils.translation import gettext_lazy as _ from config_models.utils import deserialize_json diff --git a/config_models/models.py b/config_models/models.py index 58bf4a8..f8ef0cf 100644 --- a/config_models/models.py +++ b/config_models/models.py @@ -11,7 +11,7 @@ # Django cache. from django.core.cache import cache # pylint: disable=unused-import from django.db import models -from django.utils.translation import ugettext_lazy as _ +from django.utils.translation import gettext_lazy as _ from edx_django_utils.cache.utils import TieredCache from rest_framework.utils import model_meta