mirror of
https://gitlab.crans.org/bde/nk20
synced 2025-07-27 02:55:25 +02:00
Changed score calculation in survey
This commit is contained in:
@ -1246,6 +1246,10 @@ class WEISurveyView(LoginRequiredMixin, BaseFormView, DetailView):
|
||||
|
||||
if not self.survey:
|
||||
self.survey = CurrentSurvey(obj)
|
||||
|
||||
if request.GET.get("reset") == "true":
|
||||
info = self.survey.information
|
||||
info.reset(obj)
|
||||
# If the survey is complete, then display the end page.
|
||||
if self.survey.is_complete():
|
||||
return redirect(reverse_lazy('wei:wei_survey_end', args=(self.survey.registration.pk,)))
|
||||
|
Reference in New Issue
Block a user