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')
|
||||
|
||||
if missing_perm:
|
||||
messages.error('Permission refusée')
|
||||
messages.error(request, 'Permission refusée')
|
||||
if success:
|
||||
return redirect('kfet.account.read', account.trigramme)
|
||||
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", {
|
||||
'account' : account,
|
||||
|
@ -1602,7 +1602,7 @@ def order_create(request, pk):
|
|||
return redirect('kfet.order.read', order.pk)
|
||||
messages.warning(request, 'Rien commandé => Pas de commande')
|
||||
else:
|
||||
messages.error('Corrigez les erreurs')
|
||||
messages.error(request, 'Corrigez les erreurs')
|
||||
else:
|
||||
formset = cls_formset(initial=initial)
|
||||
|
||||
|
|
Loading…
Reference in a new issue