fix get_placeholder
This commit is contained in:
+1
-1
@@ -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 "?"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user