def get_prep_value ( self , value ) : if self . null and value is None : return None return json . dumps ( value , * * self . dump_kwargs )
python json null instead of none
Convert JSON object to a string
def get_prep_value(self, value):
        """Convert JSON object to a string"""
        if self.null and value is None:
            return None
        return json.dumps(value, **self.dump_kwargs)