Commit 26a0ad09 authored by Guesdon Damien's avatar Guesdon Damien
Browse files

enh(sujet) correction message de warning classe PAOUpadte

parent 8ecd0d4d
......@@ -366,6 +366,6 @@ class PAOUpdate(MenuPAO, edit.UpdateView):
def form_valid(self, form):
if not form.instance.is_editable_by(self.request.user):
messages.warning(self.request, "Vous ne pouvez modifier cette PAO")
messages.warning(self.request, "Vous ne pouvez modifier ce PAO")
return redirect('pao:pao-detail', form.instance.pk)
return super().form_valid(form)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment