From 8a871ad262a2c05167c64c816774256df05da9ac Mon Sep 17 00:00:00 2001 From: Erin Mullaney <erin.mullaney@torchbox.com> Date: Tue, 12 Feb 2019 09:15:12 -0500 Subject: [PATCH] #957 move reviewers to end of fields in form --- opentech/apply/funds/forms.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/opentech/apply/funds/forms.py b/opentech/apply/funds/forms.py index 6465a06e9..f4f0e2f78 100644 --- a/opentech/apply/funds/forms.py +++ b/opentech/apply/funds/forms.py @@ -108,6 +108,10 @@ class UpdateReviewersForm(forms.ModelForm): # Pre-populate form field self.fields[field_name].initial = assigned_roles.get(role) + # Move the non-role reviewers field to the end of the field list + if self.fields.get('reviewer_reviewers'): + self.fields.move_to_end('reviewer_reviewers') + def prepare_field(self, field_name, initial, excluded): field = self.fields[field_name] field.queryset = field.queryset.exclude(id__in=excluded) -- GitLab