From 620511359d2247a2c2cad8adb44bbdb635a2488e Mon Sep 17 00:00:00 2001 From: Benni Baermann Date: Thu, 1 Oct 2020 14:45:04 +0200 Subject: [PATCH] split up form --- input/forms.py | 3 ++- input/views.py | 7 ++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/input/forms.py b/input/forms.py index 19efbac..47cd3e0 100644 --- a/input/forms.py +++ b/input/forms.py @@ -25,7 +25,8 @@ class VolunteerForm(ModelForm): class LibraryForm(ModelForm): class Meta: model = Library - fields = '__all__' + # fields = '__all__' + exclude = ('realname', 'email', 'username') class IFGForm(ModelForm): class Meta: diff --git a/input/views.py b/input/views.py index 1289dc9..cafaa9b 100644 --- a/input/views.py +++ b/input/views.py @@ -34,6 +34,7 @@ class ExternView(SessionWizardView): template_name = "input/extern.html" form_list = [VolunteerForm, LibraryForm] def done(self, form_list, **kwargs): - return render(self.request, 'done.html', { - 'form_data': [form.cleaned_data for form in form_list], - }) + return done(self.request) + # return render(self.request, 'saved', { + # 'form_data': [form.cleaned_data for form in form_list], + # })