Use lazy gettext in models and forms to allow things to be shown in Spanish.

This commit is contained in:
2019-04-07 17:04:02 +01:00
parent 6e34abda84
commit 87e9296007
4 changed files with 95 additions and 52 deletions

View File

@ -1,6 +1,6 @@
from django.contrib.auth.models import User
from django.db import models
from django.utils.translation import ugettext as _
from django.utils.translation import ugettext_lazy as _
from apps.map.models import CaseStudy, CaseStudyDraft