karthikbgl / django-tagging

Automatically exported from code.google.com/p/django-tagging
Other
0 stars 0 forks source link

Add support for South migrations of TagField #265

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
South is widely used across the Django community for schema migrations. 
Currently, south is not able to introspect the TagField field. django-tagging 
can accommodate South with the following few lines in tagging/fields.py:

try:
    from south.modelsinspector import add_introspection_rules
    add_introspection_rules([], ["^myapp\.stuff\.fields\.SomeNewField"])
except ImportError:
    pass

Original issue reported on code.google.com by bendavi...@gmail.com on 6 Sep 2011 at 2:51

GoogleCodeExporter commented 9 years ago
Sorry, forgot to change it from the example.  The code should be:

try:
    from south.modelsinspector import add_introspection_rules
    add_introspection_rules([], ["^tagging\.fields\.TagField"])
except ImportError:
    pass

Original comment by bendavi...@gmail.com on 6 Sep 2011 at 2:53