1. Shmigelsky Andrey
  2. django-annoying
  3. Issues
Issue #26 new

JSONField breaks South migrations

Anonymous created an issue

Since South can't introspect the JSONField class your migrations will no longer work if you need this field type. Adding a definition would fix this:

http://south.aeracode.org/wiki/MyFieldsDontWork

Comments (1)

  1. Pratik Mandrekar

    I faced this issue, but got it fixed by simply adding the below just before I used JSONField in my models.py. Since JSONField is a simple extension of TextField, there isn't any issue with the introspection and contructor.

    from south.modelsinspector import add_introspection_rules add_introspection_rules([], ["^annoying.fields.JSONField"])

  2. Log in to comment