From 550d7cede05875576fd4088a8a005f78dcff64bb Mon Sep 17 00:00:00 2001 From: James Graham Date: Fri, 26 Feb 2021 15:57:09 +0000 Subject: [PATCH] fix: hide relationship list from non-admins Resolves #81 --- people/forms.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/people/forms.py b/people/forms.py index 89ce80f..3f567b8 100644 --- a/people/forms.py +++ b/people/forms.py @@ -192,6 +192,9 @@ class RelationshipAnswerSetForm(forms.ModelForm, DynamicAnswerSetBase): fields = [ 'relationship', ] + widgets = { + 'relationship': forms.HiddenInput, + } question_model = models.RelationshipQuestion answer_model = models.RelationshipQuestionChoice