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

columns that cannot be shown in table are hidden in the form

parent 679c9528
No related branches found
No related tags found
1 merge request!285Resolve "list of default visible colums in subject lists"
......@@ -15,7 +15,8 @@ class StudySubjectListEditForm(ModelForm):
class SubjectColumnsEditForm(ModelForm):
class Meta:
model = SubjectColumns
fields = '__all__'
exclude = ['sex', 'phone_number', 'phone_number_2', 'phone_number_3', 'default_written_communication_language',
'postal_code', 'city', 'country', 'email', 'languages']
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
......@@ -24,7 +25,8 @@ class SubjectColumnsEditForm(ModelForm):
class StudySubjectColumnsEditForm(ModelForm):
class Meta:
model = StudyColumns
fields = '__all__'
exclude = ['comments', 'referral_letter', 'endpoint_reached', 'resign_reason',
'health_partner_feedback_agreement', 'voucher_types', 'vouchers']
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
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