Commits

Andrew Godwin committed 63b2284

Better fix for #184 based on the patch.

  • Participants
  • Parent commits 6178d86

Comments (0)

Files changed (1)

south/modelsinspector.py

 from django.db.models.base import ModelBase
 from django.db.models.fields import NOT_PROVIDED
 from django.conf import settings
+from django.utils.functional import Promise
 
 NOISY = True
 
     value = get_attribute(field, attrname)
     # Lazy-eval functions get eval'd.
     # Annoyingly, we can't do an isinstance() test
-    if hasattr(value, "__class__") and value.__class__.__name__ == "__proxy__":
+    if isinstance(value, Promise):
         value = unicode(value)
     # If the value is the same as the default, omit it for clarity
     if "default" in options and value == options['default']: