fix: reset feedback stuff

This commit is contained in:
Livio Bieri 2024-02-22 21:52:58 +01:00
parent e32a2eddf3
commit 9dc412502e
1 changed files with 7 additions and 0 deletions

View File

@ -43,6 +43,10 @@ from vbv_lernwelt.learnpath.models import (
LearningContentFeedbackVV, LearningContentFeedbackVV,
) )
from vbv_lernwelt.notify.models import Notification from vbv_lernwelt.notify.models import Notification
from vbv_lernwelt.self_evaluation_feedback.models import (
CourseCompletionFeedback,
SelfEvaluationFeedback,
)
@click.command() @click.command()
@ -111,6 +115,9 @@ def command(
FeedbackResponse.objects.all().delete() FeedbackResponse.objects.all().delete()
CourseSessionAttendanceCourse.objects.all().update(attendance_user_list=[]) CourseSessionAttendanceCourse.objects.all().update(attendance_user_list=[])
SelfEvaluationFeedback.objects.all().delete()
CourseCompletionFeedback.objects.all().delete()
LearningMentor.objects.all().delete() LearningMentor.objects.all().delete()
User.objects.all().update(organisation=Organisation.objects.first()) User.objects.all().update(organisation=Organisation.objects.first())
User.objects.all().update(language="de") User.objects.all().update(language="de")