admin: change exercice's Delete button to cascade deletion

This commit is contained in:
nemunaire 2020-09-06 12:14:19 +02:00
parent 2d6d09852b
commit c9932cdaf6

View File

@ -235,7 +235,7 @@ func delExerciceHistory(exercice fic.Exercice, body []byte) (interface{}, error)
}
func deleteExercice(exercice fic.Exercice, _ []byte) (interface{}, error) {
return exercice.Delete()
return exercice.DeleteCascade()
}
func updateExercice(exercice fic.Exercice, body []byte) (interface{}, error) {