admin: change exercice's Delete button to cascade deletion
This commit is contained in:
parent
2d6d09852b
commit
c9932cdaf6
@ -235,7 +235,7 @@ func delExerciceHistory(exercice fic.Exercice, body []byte) (interface{}, error)
|
|||||||
}
|
}
|
||||||
|
|
||||||
func deleteExercice(exercice fic.Exercice, _ []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) {
|
func updateExercice(exercice fic.Exercice, body []byte) (interface{}, error) {
|
||||||
|
Loading…
Reference in New Issue
Block a user