split up form

This commit is contained in:
Benni Baermann 2020-10-01 14:45:04 +02:00
parent 997acb44d5
commit 620511359d
2 changed files with 6 additions and 4 deletions

View file

@ -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:

View file

@ -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],
# })