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

StudySubject forms shouldn't have date of birth field

parent b117708b
No related branches found
No related tags found
1 merge request!99separate patient data from study data
......@@ -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)
......
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