From ac97a87d99eb08404f421d8b1b9e433e9454c7d4 Mon Sep 17 00:00:00 2001 From: Sandeep Chauhan <sandeepsajan0@gmail.com> Date: Fri, 22 Mar 2024 13:22:00 +0530 Subject: [PATCH] Use existing form_fields for determination edit form (#3822) Partial fix for #3280 ## Test Steps - [ ] Pick a submission that already has a determination and notices the determination's fields. - [ ] Update determination form for submission round via wagtail(remove a few fields) - [ ] Check the submission determination edit form, it should contain all the fields(older) irrespective of the new determination form. --- hypha/apply/determinations/views.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/hypha/apply/determinations/views.py b/hypha/apply/determinations/views.py index 31c77f2d6..e7bed495a 100644 --- a/hypha/apply/determinations/views.py +++ b/hypha/apply/determinations/views.py @@ -657,7 +657,9 @@ class DeterminationEditView(BaseStreamForm, UpdateView): def get_defined_fields(self): determination = self.get_object() - return get_fields_for_stage(determination.submission) + return determination.form_fields or get_fields_for_stage( + determination.submission + ) def get_form_kwargs(self): determiantion = self.get_object() -- GitLab