1
0
Fork 0

split up form

This commit is contained in:
Benni Bärmann 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],
# })