Quand on renomme, on renomme
This commit is contained in:
parent
4cc6db84e2
commit
11bd53cbeb
@ -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,
|
||||
(_(
|
||||
|
Loading…
x
Reference in New Issue
Block a user