sinnvolleres_speichern

This commit is contained in:
ben8
2025-04-23 16:11:08 +02:00
parent a021e7561a
commit 0c8a8d3062
6 changed files with 147 additions and 43 deletions

View File

@@ -40,7 +40,7 @@ class QivipQuiz(models.Model):
QuizImage,
null=True,
blank=True,
on_delete=models.SET_NULL, # Bild bleibt erhalten, selbst wenn das Quiz gelöscht wird
on_delete=models.PROTECT,
related_name="quizzes"
)
@@ -95,7 +95,7 @@ class QivipQuestion(models.Model):
QuestionImage,
null=True,
blank=True,
on_delete=models.SET_NULL,
on_delete=models.PROTECT,
related_name="questions"
)