Skip to content
This repository was archived by the owner on Feb 27, 2020. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions djeneralize/fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,3 +59,12 @@ def __get__(self, instance, instance_type=None):
return related_object

#}

# allow South to handle these fields smoothly
# Because SpecializedForeignKey inherits from ForeignKey and does not add any new
# arguments, no special introspection rules are needed.
try:
from south.modelsinspector import add_introspection_rules
add_introspection_rules(rules=[], patterns=['^djeneralize\.fields\.SpecializedForeignKey'])
except ImportError:
pass