Merge "Add "cache_ok=False" flag to TypeDecorator TruncatedDateTime()"
This commit is contained in:
@@ -77,6 +77,8 @@ class TruncatedDateTime(types.TypeDecorator):
|
||||
|
||||
impl = types.DateTime
|
||||
|
||||
cache_ok = False
|
||||
|
||||
def process_bind_param(self, value, dialect):
|
||||
return value.replace(microsecond=0) if value else value
|
||||
|
||||
|
||||
Reference in New Issue
Block a user