Skip to content

Instantly share code, notes, and snippets.

@chrischambers
Created September 7, 2010 20:46
Show Gist options
  • Save chrischambers/569068 to your computer and use it in GitHub Desktop.
Save chrischambers/569068 to your computer and use it in GitHub Desktop.
try:
from south.modelsinspector import add_introspection_rules
except ImportError:
add_introspection_rules = False
if add_introspection_rules:
add_introspection_rules([
(
[UserField],
[],
{
"to": ["rel.to", {'ignore_if': 'name'}],
},
),
], [r"^threaded_multihost\.fields\.UserField"])
add_introspection_rules([], [r"^threaded_multihost\.fields\.CreatorField"])
add_introspection_rules([], [r"^threaded_multihost\.fields\.EditorField"])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment