python-choicesenum icon indicating copy to clipboard operation
python-choicesenum copied to clipboard

django ugettext_lazy deprecation warnings

Open si14 opened this issue 5 years ago • 2 comments

  • 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.

si14 avatar Sep 03 '20 19:09 si14

Is this project dead?

si14 avatar Feb 12 '21 20:02 si14

@si14 opened a PR dealing with this issue: https://github.com/loggi/python-choicesenum/pull/256

gustavo-depaula avatar Jun 08 '21 19:06 gustavo-depaula