Skip to content

Commit

Permalink
date time field accepts partial ISO8061 format. this is a work around…
Browse files Browse the repository at this point in the history
…, should be changed once django version has been updated. NOAA-OWP#209 is tracking this
  • Loading branch information
aaraney authored and robertbartel committed Jan 9, 2023
1 parent c6f763c commit 8d42ba0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion python/gui/MaaS/cbv/DatasetManagementForms.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@
# correspond to `dmod.core.meta_data.StandardDatasetIndex``
_Unknown = forms.CharField
_Time = partial(
forms.DateTimeField, widget=forms.DateInput(attrs={"type": "datetime-local"})
forms.DateTimeField, widget=forms.DateTimeInput(attrs={"type": "datetime-local"}),
# TODO: this should be removed once we upgrade django versions >= 3.1 (tracked by #209)
input_formats=["%Y-%m-%dT%H:%M"]
)
_CatchmentId = forms.CharField
_DataId = forms.CharField
Expand Down

0 comments on commit 8d42ba0

Please sign in to comment.