Fix edit clef

This commit is contained in:
Med 2017-09-06 22:40:24 +02:00
parent 7acbacbf1a
commit fa55b8f274
1 changed files with 1 additions and 1 deletions

View File

@ -290,7 +290,7 @@ def edit_clef(request, clefid):
except Clef.DoesNotExist: except Clef.DoesNotExist:
messages.error(request, u"Entrée inexistante" ) messages.error(request, u"Entrée inexistante" )
return redirect("/users/index_clef/") return redirect("/users/index_clef/")
clef = ClefForm(request.POST or None, instance=clef_instance) clef = ClefForm(request.POST or None, instance=clef_instance)
if clef.is_valid(): if clef.is_valid():
with transaction.atomic(), reversion.create_revision(): with transaction.atomic(), reversion.create_revision():
clef.save() clef.save()