django2.2: adapt DateTimeField in forms with the new API

This commit is contained in:
klmp200 committed 2019-10-08 22:46:02 +02:00
1 parent 6cc234e8d3
commit 12b6f0d488
5 files changed
+21 -15

No files matched your search

+2 -2
View File
@@ -159,13 +159,13 @@ class MailingForm(forms.Form):
class SellingsFormBase(forms.Form):
begin_date = forms.DateTimeField(
["%Y-%m-%d %H:%M:%S"],
input_formats=["%Y-%m-%d %H:%M:%S"],
label=_("Begin date"),
required=False,
widget=SelectDateTime,
)
end_date = forms.DateTimeField(
["%Y-%m-%d %H:%M:%S"],
input_formats=["%Y-%m-%d %H:%M:%S"],
label=_("End date"),
required=False,
widget=SelectDateTime,