(self)
return {
            column: value
            if not isinstance(value, datetime)
            else value.strftime("%Y-%m-%d")
            for column, value in self._to_dict().items()
            if column not in self.to_json_filter
        }
Define a base way to jsonify models
            Columns inside `to_json_filter` are excluded
Define a base way to jsonify models
            Columns inside `to_json_filter` are excluded
Define a base way to jsonify models Columns inside to_json_filter are excluded
def json(self):
        """ Define a base way to jsonify models
            Columns inside `to_json_filter` are excluded """
        return {
            column: value
            if not isinstance(value, datetime)
            else value.strftime("%Y-%m-%d")
            for column, value in self._to_dict().items()
            if column not in self.to_json_filter
        }
def json ( self ) : return { column : value if not isinstance ( value , datetime ) else value . strftime ( "%Y-%m-%d" ) for column , value in self . _to_dict ( ) . items ( ) if column not in self . to_json_filter }