feincms / feincms-elephantblog

A blog for FeinCMS
feinheit.ch/labs/
BSD 3-Clause "New" or "Revised" License
43 stars 38 forks source link

missing detail in documentation: import gettext as _ #66

Closed elmcrest closed 6 years ago

elmcrest commented 6 years ago

in the documentation the example for models.py lacks the import for gettext or 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.