Commits

Michael Huynh  committed 5e81786

Added introspection plugin file for django-annoying's AutoOneToOneField

  • Participants
  • Parent commits ab02739

Comments (0)

Files changed (1)

File south/introspection_plugins/annoying_autoonetoone.py

+from south.modelsinspector import add_introspection_rules
+
+try:
+    from annoying.fields import AutoOneToOneField
+except ImportError:
+    pass
+else:
+    #django-annoying's AutoOneToOneField is essentially a OneToOneField.
+    add_introspection_rules([], ["^annoying\.fields\.AutoOneToOneField"])