Commits

Matthew Schinckel committed b9dd656

Fixes for DeprecationWarning from django 1.3+

Comments (0)

Files changed (1)

jsonfield/fields.py

             value = json.loads(value)
         return value
 
-    def get_db_prep_save(self, value):
+    def get_db_prep_save(self, value, connection):
         if value is None: 
             return None
         return json.dumps(value, default=default)
     
-    def get_db_prep_value(self, value):
-        return self.get_db_prep_save(value)
+    def get_db_prep_value(self, value, connection, prepared=None):
+        return self.get_db_prep_save(value, connection=connection)
 
     def value_to_string(self, obj):
         value = self._get_val_from_obj(obj)