Commits

michael_scheibe  committed c4d8fa5

In django 1.3.1 django.utils.translation.trans_real._fetch loads all your apps in reverse order.

Trying to import django.utils.trans_real.uggettext from django-jsonfield results in a circular import, specifically when another package imports django-jsonfield, like disqus's gargoyle.

Using django.utils.translation.uggettext_lazy instead fixes the issue.

  • Participants
  • Parent commits f4da8c7

Comments (0)

Files changed (1)

File jsonfield/fields.py

 from django.core.exceptions import ValidationError
 from django.db import models
 from django.utils import simplejson as json
-from django.utils.translation import ugettext as _
+from django.utils.translation import ugettext_lazy as _
 
 from decimal import Decimal
 import datetime