split up form
This commit is contained in:
parent
997acb44d5
commit
620511359d
2 changed files with 6 additions and 4 deletions
|
@ -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:
|
||||
|
|
|
@ -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],
|
||||
# })
|
||||
|
|
Loading…
Reference in a new issue