1. Jannis Leidel
  2. django-model-utils

Commits

Carl Meyer  committed 655040d

support South for custom fields

  • Participants
  • Parent commits 6d50e6b
  • Branches default

Comments (0)

Files changed (1)

File model_utils/fields.py

View file
         setattr(model_instance, self.attname, value)
         return value    
     
+# allow South to handle these fields smoothly
+try:
+    from south.modelsinspector import add_introspection_rules
+    add_introspection_rules(patterns=['model_utils\.fields\.'])
+except ImportError:
+    pass
+