Commits

Yohan Boniface committed 5cca960

can't use ugettext_lazy for database storage

See https://code.djangoproject.com/ticket/13965

  • Participants
  • Parent commits 2d979d6

Comments (0)

Files changed (1)

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_lazy as _
+from django.utils.translation import ugettext, ugettext_lazy as _
 from django.core.signing import Signer
 from django.contrib import messages
 
         maps.
         """
         return cls.objects.get_or_create(
-            name=getattr(settings, "LEAFLET_STORAGE_DEFAULT_LICENCE_NAME", _('No licence set'))
+            # can't use ugettext_lazy for database storage, see #13965
+            name=getattr(settings, "LEAFLET_STORAGE_DEFAULT_LICENCE_NAME", ugettext('No licence set'))
         )[0]