Skip to content
Snippets Groups Projects
Commit 78f61adc authored by Hangzhi Yu's avatar Hangzhi Yu
Browse files

Use gettext_lazy instead of ugettext_lazy

parent 85911898
Branches 18-add-support-for-django-4
No related tags found
2 merge requests!31Resolve "Adapt for use with SPA",!30Draft: Resolve "Add support for django 4"
Pipeline #125752 failed
......@@ -6,6 +6,14 @@ All notable changes to this project will be documented in this file.
The format is based on `Keep a Changelog`_,
and this project adheres to `Semantic Versioning`_.
Unreleased
----------
Fixed
-----
* Replace usage of deprecated `ugettext_lazy` with `gettext_lazy`.
`1.2`_ - 2022-03-20
-------------------
......
......@@ -2,7 +2,7 @@ from django.core.exceptions import PermissionDenied, SuspiciousOperation
from django.shortcuts import get_object_or_404, redirect, render
from django.urls import reverse, reverse_lazy
from django.utils.decorators import method_decorator
from django.utils.translation import ugettext as _
from django.utils.translation import gettext as _
from django.views.decorators.cache import never_cache
from django.views.generic import View
from django.views.generic.detail import DetailView
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment