JSONField breaks South migrations

Issue #26 new
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:


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