From 3b060ad2cc963f0727d72d9475bbc805c2510cf2 Mon Sep 17 00:00:00 2001
From: Piotr Gawron <piotr.gawron@uni.lu>
Date: Wed, 29 Nov 2017 11:22:57 +0100
Subject: [PATCH] StudySubject forms shouldn't have date of birth field

---
 smash/web/forms.py | 9 ---------
 1 file changed, 9 deletions(-)

diff --git a/smash/web/forms.py b/smash/web/forms.py
index 7a845891..fa18fcaf 100644
--- a/smash/web/forms.py
+++ b/smash/web/forms.py
@@ -67,11 +67,6 @@ def validate_subject_mpower_number(self, cleaned_data):
 
 
 class StudySubjectAddForm(ModelForm):
-    date_born = forms.DateField(label="Date of birth",
-                                widget=forms.DateInput(DATEPICKER_DATE_ATTRS, "%Y-%m-%d"),
-                                required=False
-                                )
-
     datetime_contact_reminder = forms.DateTimeField(label="Contact on",
                                                     widget=forms.DateTimeInput(DATETIMEPICKER_DATE_ATTRS),
                                                     required=False
@@ -157,10 +152,6 @@ class StudySubjectEditForm(ModelForm):
                                                     widget=forms.DateTimeInput(DATETIMEPICKER_DATE_ATTRS),
                                                     required=False
                                                     )
-    date_born = forms.DateField(label="Date of birth",
-                                widget=forms.DateInput(DATEPICKER_DATE_ATTRS, "%Y-%m-%d"),
-                                required=False
-                                )
 
     def __init__(self, *args, **kwargs):
         was_resigned = kwargs.get('was_resigned', False)
-- 
GitLab