From dc986d19e0e46b9454245c337ba9568681855987 Mon Sep 17 00:00:00 2001 From: Benni Baermann Date: Mon, 2 Nov 2020 15:41:08 +0100 Subject: [PATCH] fixed order of fields. notes should be at the end --- input/forms.py | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/input/forms.py b/input/forms.py index 00bb0b1..8715742 100644 --- a/input/forms.py +++ b/input/forms.py @@ -57,25 +57,22 @@ class LibraryForm(ModelForm): class Meta: model = Library - exclude = ('realname', 'email', 'username', 'type', 'granted',\ - 'granted_date', 'survey_mail_send', 'service_id') + fields = ['cost', 'library', 'duration', 'notes'] class IFGForm(ModelForm): class Meta: model = IFG - exclude = ('realname', 'email', 'username', 'granted', 'granted_date',\ - 'service_id', 'survey_mail_send') + fields = ['cost', 'url', 'notes'] class HonoraryCertificateForm(ModelForm): class Meta: model = HonoraryCertificate fields = ['request_url', 'project'] - # exclude = ('realname', 'email', 'username', 'granted', 'granted_date', 'survey_mail_send') class LiteratureForm(ModelForm): class Meta: model = Literature - fields = ['cost', 'notes', 'info', 'source'] + fields = ['cost', 'info', 'source', 'notes'] class EmailForm(ModelForm): # TODO: add some javascript to show/hide other-field @@ -86,7 +83,6 @@ class EmailForm(ModelForm): class Meta: model = Email fields = ['domain', 'address', 'other'] - # exclude = ('realname', 'email', 'username', 'granted', 'granted_date', 'survey_mail_send') class BusinessCardForm(ModelForm): class Meta: