Skip to content

Commit

Permalink
fix: ugettext deprecated (#93)
Browse files Browse the repository at this point in the history
Calling any of ugettext(), ugettext_lazy(), ugettext_noop(), ungettext() and ungettext_lazy() functions from django.utils.translation will raise an error in django 4+.
  • Loading branch information
CodeWithEmad authored Jul 8, 2024
1 parent 5c06fff commit 79030ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ For instance, edit the "donate.html" file in this directory. We can derive the c
.. code-block:: mako
<%page expression_filter="h"/>
<%! from django.utils.translation import ugettext as _ %>
<%! from django.utils.translation import gettext as _ %>
<%inherit file="../main.html" />
<%block name="pagetitle">${_("Donate")}</%block>
Expand Down

0 comments on commit 79030ad

Please sign in to comment.