Skip to content

Commit

Permalink
fix: replace deprecated 'ugettext_lazy' with 'gettext_lazy' (#190)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jawayria authored Dec 21, 2021
1 parent 31021e2 commit 80aa4e6
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion config_models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion config_models/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -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']
Expand Down
2 changes: 1 addition & 1 deletion config_models/management/commands/populate_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion config_models/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 80aa4e6

Please sign in to comment.