From edd2cc66fff3159699c28c8f86c52e6524ce9d86 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Mat=C3=ADas=20Aguirre?= Date: Thu, 31 Mar 2011 17:54:36 -0300 Subject: [PATCH] Use get_prep_value instead of the database related one. Closes gh-42 --- social_auth/fields.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/social_auth/fields.py b/social_auth/fields.py index 4664155..46a5f25 100644 --- a/social_auth/fields.py +++ b/social_auth/fields.py @@ -34,7 +34,7 @@ class JSONField(models.TextField): except Exception, e: raise ValidationError(str(e)) - def get_db_prep_value(self, value, connection, prepared=False): + def get_prep_value(self, value): """Convert value to JSON string before save""" try: return simplejson.dumps(value) -- 2.39.5