Skip to content

Commit

Permalink
Added south introspection rule
Browse files Browse the repository at this point in the history
  • Loading branch information
nemesisdesign committed Feb 12, 2012
1 parent b75b259 commit dae7aab
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions tagging_autocomplete_tagit/south.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
from south.modelsinspector import add_introspection_rules
from django.conf import settings

if "tagging_autocomplete_tagit" in settings.INSTALLED_APPS:
try:
from tagging_autocomplete_tagit.models import TagAutocompleteTagItField
except ImportError:
pass
else:
rules = [
(
(TagAutocompleteTagItField, ),
[],
{
"blank": ["blank", {"default": True}],
"max_length": ["max_length", {"default": 255}],
"max_tags": ["max_tags", {"default": False}],
},
),
]
add_introspection_rules(rules, ["^tagging_autocomplete_tagit\.models",])

0 comments on commit dae7aab

Please sign in to comment.