Skip to content
Snippets Groups Projects
Commit 31f4f550 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

subject edit/add allows to put contact on as a timestamp

parent 9d13dbb9
No related branches found
No related tags found
1 merge request!44Subject contact on field contains hour
......@@ -41,8 +41,8 @@ class SubjectAddForm(ModelForm):
required=False
)
datetime_contact_reminder = forms.DateField(label="Contact on",
widget=forms.DateInput(DATEPICKER_DATE_ATTRS, "%Y-%m-%d"),
datetime_contact_reminder = forms.DateTimeField(label="Contact on",
widget=forms.DateTimeInput(DATETIMEPICKER_DATE_ATTRS),
required=False
)
......@@ -111,8 +111,8 @@ class SubjectDetailForm(ModelForm):
class SubjectEditForm(ModelForm):
datetime_contact_reminder = forms.DateField(label="Contact on",
widget=forms.DateInput(DATEPICKER_DATE_ATTRS, "%Y-%m-%d"),
datetime_contact_reminder = forms.DateTimeField(label="Contact on",
widget=forms.DateTimeInput(DATETIMEPICKER_DATE_ATTRS),
required=False
)
date_born = forms.DateField(label="Date of birth",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment