Re: Field.get_default() returning dict instance causing migration to fail

2014-05-05 Thread Andrew Godwin
The main problem here is defaults being used for schema definition versus being used for data insertion. The latter runs through the full ORM and the correct methods to convert it to a database value through the field; the former does not, I believe, so this is probably (another) release-blocking b

Field.get_default() returning dict instance causing migration to fail

2014-05-05 Thread Martin Tiršel
Hello, I just installed 1.7 (pip install git+https://github.com/django/django@stable/1.7.x) and the django-jsonfield app. As you can see here, JSONField.get_default() returns a dict instance, not a string: https://bitbucket.org/schinckel/django-jsonfield/src/28c51eb06a65c1e7b5d8022031aebb034e0