From 17b4ae851ef802f8254312d17d8f1650730cf3d0 Mon Sep 17 00:00:00 2001 From: 4-dash <120916864+4-dash@users.noreply.github.com> Date: Sun, 21 Jul 2024 02:10:40 +0400 Subject: [PATCH] removed "Digitale Evaluation" checkbox --- src/feedback/forms.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/feedback/forms.py b/src/feedback/forms.py index 2df2b7a4..f04972d1 100644 --- a/src/feedback/forms.py +++ b/src/feedback/forms.py @@ -1,5 +1,6 @@ # coding=utf-8 +from typing import Any from django import forms from django.forms import widgets @@ -84,11 +85,16 @@ class Meta: "anzahl", "sprache", "verantwortlich", - "digitale_eval", "ergebnis_empfaenger", "auswertungstermin", ) widgets = {"ergebnis_empfaenger": forms.CheckboxSelectMultiple} + + def clean(self) -> dict[str, Any]: + cleaned_data = super().clean() + + # "digitale_eval" removed from user interface + cleaned_data["digitale_eval"] = True class VeranstaltungDigitaleEvaluationForm(BestellWizardForm):