Commits

Yohan Boniface  committed 4e6143b

Use lazy translation for runtime loaded strings

  • Participants
  • Parent commits dad6aa1

Comments (0)

Files changed (2)

File leaflet_storage/base_models.py

 from django.conf import settings
 from django.core.urlresolvers import reverse
 from django.contrib.auth.models import User
-from django.utils.translation import ugettext as _
+from django.utils.translation import ugettext_lazy as _
 from django.core.signing import Signer
 from django.contrib import messages
 

File leaflet_storage/forms.py

 
 from django import forms
 from django.contrib.gis.geos import Point
-from django.utils.translation import ugettext as _
+from django.utils.translation import ugettext_lazy as _
 from django.template.defaultfilters import slugify
 from django.conf import settings