From 31f4f5505e28b01222feec44b66af9625e8277d1 Mon Sep 17 00:00:00 2001
From: Piotr Gawron <piotr.gawron@uni.lu>
Date: Thu, 6 Apr 2017 12:37:03 +0200
Subject: [PATCH] subject edit/add allows to put contact on as a timestamp

---
 smash/web/forms.py | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/smash/web/forms.py b/smash/web/forms.py
index b5d6da32..f4ec2a3b 100644
--- a/smash/web/forms.py
+++ b/smash/web/forms.py
@@ -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",
-- 
GitLab