'Convert our JSON object to a string before we save'

def get_db_prep_save(self, value, connection, **kwargs):

    if ((value is None) and self.null):
        return None
    if (not isinstance(value, six.string_types)):
        value = dumps(value)
    return super(JSONField, self).get_db_prep_save(value, connection=connection)
