From 6a1c1ac8991864a0254ada48a00caf545d14c89f Mon Sep 17 00:00:00 2001 From: Ross Date: Thu, 9 Jun 2022 19:03:42 +0100 Subject: [PATCH] . --- rapids/forms.py | 2 +- templates/registration/password_change_form.html | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/rapids/forms.py b/rapids/forms.py index 751441b1..7ec80b55 100755 --- a/rapids/forms.py +++ b/rapids/forms.py @@ -125,7 +125,7 @@ class RapidForm(ModelForm): self.fields["exams"] = ModelMultipleChoiceField( required=False, - queryset=exam_queryset, + queryset=exam_queryset.distinct(), widget=FilteredSelectMultiple(verbose_name="Exams", is_stacked=False), ) diff --git a/templates/registration/password_change_form.html b/templates/registration/password_change_form.html index 9f301b83..6bf46e45 100644 --- a/templates/registration/password_change_form.html +++ b/templates/registration/password_change_form.html @@ -50,4 +50,10 @@ +