Skip to content

django ugettext_lazy deprecation warnings #240

Open
@si14

Description

@si14
  • Choices Enum version: 0.7.0
  • Python version: 3.8
  • Django version: 3.0
  • Operating System: any

Description

When run under PYTHONDEVMODE=1, choicesenum produces the following warnings:

choicesenum/django/fields.py:20: RemovedInDjango40Warning: django.utils.translation.ugettext_lazy() is deprecated in favor of django.utils.translation.gettext_lazy()

choicesenum/django/fields.py:22: RemovedInDjango40Warning: django.utils.translation.ugettext_lazy() is deprecated in favor of django.utils.translation.gettext_lazy()

I guess this can be solved quite trivially if you're happy to drop python 2 support.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions