Commit 8b301890 authored by root's avatar root

fix notes on form_widget_args

parent 4f0cb392
...@@ -399,7 +399,9 @@ class BaseModelView(BaseView, ActionsMixin): ...@@ -399,7 +399,9 @@ class BaseModelView(BaseView, ActionsMixin):
} }
} }
Note, changing the format of a DateTimeField will require changes to both form_widget_args and form_args:: Changing the format of a DateTimeField will require changes to both form_widget_args and form_args.
Example::
form_args = dict( form_args = dict(
start=dict(format='%Y-%m-%d %I:%M %p') # changes how the input is parsed by strptime (12 hour time) start=dict(format='%Y-%m-%d %I:%M %p') # changes how the input is parsed by strptime (12 hour time)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment