forked from DGNum/gestioCOF
Fix message
This commit is contained in:
parent
90e4c7dc74
commit
16d4a89023
1 changed files with 3 additions and 3 deletions
|
@ -364,11 +364,11 @@ def account_update(request, trigramme):
|
||||||
messages.success(request, 'Vos informations ont été mises à jour')
|
messages.success(request, 'Vos informations ont été mises à jour')
|
||||||
|
|
||||||
if missing_perm:
|
if missing_perm:
|
||||||
messages.error('Permission refusée')
|
messages.error(request, 'Permission refusée')
|
||||||
if success:
|
if success:
|
||||||
return redirect('kfet.account.read', account.trigramme)
|
return redirect('kfet.account.read', account.trigramme)
|
||||||
else:
|
else:
|
||||||
messages.error('Informations non mises à jour. Corrigez les erreurs')
|
messages.error(request, 'Informations non mises à jour. Corrigez les erreurs')
|
||||||
|
|
||||||
return render(request, "kfet/account_update.html", {
|
return render(request, "kfet/account_update.html", {
|
||||||
'account' : account,
|
'account' : account,
|
||||||
|
@ -1602,7 +1602,7 @@ def order_create(request, pk):
|
||||||
return redirect('kfet.order.read', order.pk)
|
return redirect('kfet.order.read', order.pk)
|
||||||
messages.warning(request, 'Rien commandé => Pas de commande')
|
messages.warning(request, 'Rien commandé => Pas de commande')
|
||||||
else:
|
else:
|
||||||
messages.error('Corrigez les erreurs')
|
messages.error(request, 'Corrigez les erreurs')
|
||||||
else:
|
else:
|
||||||
formset = cls_formset(initial=initial)
|
formset = cls_formset(initial=initial)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue