Skip to content

Commit

Permalink
Fixed get_db_prep_save() error
Browse files Browse the repository at this point in the history
  • Loading branch information
KR0NTAB committed Sep 22, 2011
1 parent 2e465a4 commit 0074a18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jsonfield/fields.py
Expand Up @@ -32,7 +32,7 @@ def get_db_prep_save(self, value, connection=None):
if isinstance(value, (dict, list)):
value = json.dumps(value, cls=DjangoJSONEncoder)

return super(JSONField, self).get_db_prep_save(value, connection)
return super(JSONField, self).get_db_prep_save(value, connection=connection)

try:
from south.modelsinspector import add_introspection_rules
Expand Down

0 comments on commit 0074a18

Please sign in to comment.