Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
mediatek
Base de données Mediatek
Commits
7acbacbf
Commit
7acbacbf
authored
Aug 28, 2017
by
Gabriel Detraz
Committed by
root
Aug 28, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Un permanencier peut entierrement modif une clef (demande darchou <3)
parent
75424a61
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
3 deletions
+0
-3
users/views.py
users/views.py
+0
-3
No files found.
users/views.py
View file @
7acbacbf
...
...
@@ -290,10 +290,7 @@ def edit_clef(request, clefid):
except
Clef
.
DoesNotExist
:
messages
.
error
(
request
,
u
"Entrée inexistante"
)
return
redirect
(
"/users/index_clef/"
)
if
request
.
user
.
has_perms
((
'bureau'
,)):
clef
=
ClefForm
(
request
.
POST
or
None
,
instance
=
clef_instance
)
else
:
clef
=
BaseClefForm
(
request
.
POST
or
None
,
instance
=
clef_instance
)
if
clef
.
is_valid
():
with
transaction
.
atomic
(),
reversion
.
create_revision
():
clef
.
save
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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