diff --git a/src/agenda_culturel/views.py b/src/agenda_culturel/views.py index 3b51138..2692d5f 100644 --- a/src/agenda_culturel/views.py +++ b/src/agenda_culturel/views.py @@ -1951,7 +1951,8 @@ def rename_tag(request, t): # find tag object tag_object = Tag.objects.filter(name=t).first() if tag_object: - tag_object.delete() + tag_object.name = new_name + tag_object.save() messages.success( request, (_(