|
|
@ -142,10 +142,17 @@ class ExternView(CookieWizardView): |
|
|
|
form = ListForm(data) |
|
|
|
else: |
|
|
|
raise RuntimeError(f'ERROR! UNKNOWN FORMTYPE {choice} in ExternView') |
|
|
|
self.choice = choice |
|
|
|
else: |
|
|
|
form = super().get_form(step, data, files) |
|
|
|
return form |
|
|
|
|
|
|
|
def get_context_data(self, **kwargs): |
|
|
|
context = super().get_context_data(**kwargs) |
|
|
|
if hasattr(self, 'choice'): |
|
|
|
context["choice"] = self.choice |
|
|
|
return context |
|
|
|
|
|
|
|
def done(self, form_list, **kwargs): |
|
|
|
print('ExternView.done() reached') |
|
|
|
# gather data from all forms |
|
|
|