fix get_placeholder

This commit is contained in:
Pavol Rusnak
2024-09-05 12:39:07 +02:00
committed by dni ⚡
parent 24a2719e0e
commit 51279d6738
+1 -1
View File
@@ -52,7 +52,7 @@ def compat_timestamp_placeholder(key: str):
def get_placeholder(model: Any, field: str) -> str:
type_ = model.__fields__[field].type_
if type_ == datetime.datetime:
return compat_timestamp_placeholder()
return compat_timestamp_placeholder(field)
else:
return "?"