Skip to content

Commit

Permalink
Docs: replace deprecated/removed `django.utils.translation.ugettext_l…
Browse files Browse the repository at this point in the history
…azy`

`django.utils.translation.ugettext_lazy` was deprecated in Django 3.0 and removed in Django 4.0 in favor of `django.utils.translation.gettext_lazy`.
  • Loading branch information
Abbe98 authored and hramezani committed Apr 7, 2022
1 parent 84c34f7 commit a76ecca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/custom_tagging.rst
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ to use with models using an UUID primary key:
.. code-block:: python
from django.db import models
from django.utils.translation import ugettext_lazy as _
from django.utils.translation import gettext_lazy as _
from taggit.managers import TaggableManager
from taggit.models import GenericUUIDTaggedItemBase, TaggedItemBase
Expand Down Expand Up @@ -122,7 +122,7 @@ model named ``"tag"``. If your custom ``Tag`` model has extra parameters you wan
.. code-block:: python
from django.db import models
from django.utils.translation import ugettext_lazy as _
from django.utils.translation import gettext_lazy as _
from taggit.managers import TaggableManager
from taggit.models import TagBase, GenericTaggedItemBase
Expand Down

0 comments on commit a76ecca

Please sign in to comment.