Skip to content

Commit 2ae118a

Browse files
Merge branch 'master' of github.com:derek-schaefer/django-json-field
2 parents 9cb92fc + 2a5fbc6 commit 2ae118a

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

json_field/fields.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,15 @@ def set_json(model_instance, value):
168168
try:
169169
# add support for South migrations
170170
from south.modelsinspector import add_introspection_rules
171-
add_introspection_rules([], ['^json_field\.fields\.JSONField'])
171+
rules = [
172+
(
173+
(JSONField,),
174+
[],
175+
{
176+
'db_type': ['_db_type', {'default': None}]
177+
}
178+
)
179+
]
180+
add_introspection_rules(rules, ['^json_field\.fields\.JSONField'])
172181
except ImportError:
173182
pass

0 commit comments

Comments
 (0)