1. Alen Mujezinovic
  2. django-jsonfield

Commits

Matthew Schinckel  committed b731781

Fixed an issue where data was not prepared for a lookup correctly.

  • Participants
  • Parent commits b0d598f
  • Branches default

Comments (0)

Files changed (1)

File jsonfield/fields.py

View file
             value = json.loads(value)
         return value
 
-    def get_db_prep_save(self, value, connection):
+    def get_prep_value(self, value):
         if value is None: 
             return None
         return json.dumps(value, default=default)
     
-    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)
         # Currently just returning the actual value, since otherwise I