]> git.parisson.com Git - django-social-auth.git/commitdiff
Use get_prep_value instead of the database related one. Closes gh-42
authorMatías Aguirre <matiasaguirre@gmail.com>
Thu, 31 Mar 2011 20:54:36 +0000 (17:54 -0300)
committerMatías Aguirre <matiasaguirre@gmail.com>
Thu, 31 Mar 2011 20:54:36 +0000 (17:54 -0300)
social_auth/fields.py

index 466415546b0ef38cc2050fe69cdb8526d1136a4d..46a5f2553c43d222fd1a51c8df3bfeae73e46b2e 100644 (file)
@@ -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)