Closed elmcrest closed 6 years ago
in the documentation the example for models.py lacks the import for gettext or gettext_lazy
models.py
gettext
gettext_lazy
so, to solve this, just add either:
from django.utils.translation import gettext_lazy as _
or
from django.utils.translation import gettext as _
refer to django documentation about which to choose.
in the documentation the example for
models.py
lacks the import forgettext
orgettext_lazy
so, to solve this, just add either:
or
refer to django documentation about which to choose.