fixed : allocation_list has been deleted

This commit is contained in:
2018-08-04 13:13:32 +02:00
parent 46d15f5a7f
commit 1744c77d02

View File

@@ -172,7 +172,7 @@ def allocation_edit(request):
allocation = get_allocation(request, no_cat)
if not allocation:
request.session.flash(u"Classe non trouvé : %s" % no_cat, 'warning')
return HTTPFound(location=request.route_url('allocation_list'))
return HTTPFound(location=request.route_url('home'))
page_title= u"Classe : %s" % (allocation.classe)
if 'form.submitted' in request.params:
@@ -184,7 +184,7 @@ def allocation_edit(request):
if new_values:
update_allocation(request, no_cat, new_values)
request.session.flash(u"La fiche a été mise à jour avec succès.", 'success')
return HTTPFound(location=request.route_url('allocation_list'))
return HTTPFound(location=request.route_url('home'))
if 'form.deleted' in request.params:
delete_allocation(request, no_cat)