Browse Source

maybe a fix, maybe a fuckup

main
phryk 1 month ago
parent
commit
c8c4ba6221
  1. 2
      poobrains/form/fields.py

2
poobrains/form/fields.py

@ -321,7 +321,7 @@ class BaseField(object, metaclass=poobrains.helpers.MetaCompatibility):
return 'true' if value == True else 'false'
elif isinstance(value, datetime.datetime):
return value.strftime('%Y-%m-%d %H:%M:%S')
return value.strftime('%Y-%m-%dT%H:%M:%S')
elif inspect.isclass(value):
return value.__name__

Loading…
Cancel
Save