Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Bonnegent Sebastien
pao
Commits
26a0ad09
Commit
26a0ad09
authored
May 10, 2019
by
Guesdon Damien
Browse files
enh(sujet) correction message de warning classe PAOUpadte
parent
8ecd0d4d
Changes
1
Hide whitespace changes
Inline
Side-by-side
projets/views.py
View file @
26a0ad09
...
...
@@ -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 ce
tte
PAO"
)
messages
.
warning
(
self
.
request
,
"Vous ne pouvez modifier ce PAO"
)
return
redirect
(
'pao:pao-detail'
,
form
.
instance
.
pk
)
return
super
().
form_valid
(
form
)
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment