fixed : allocation_list has been deleted
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user