mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-11-27 15:12:25 +00:00
Update views.py
This commit is contained in:
parent
0bec40de58
commit
6d8aeb6101
1 changed files with 1 additions and 1 deletions
|
@ -221,7 +221,7 @@ def edit_info(request, user, userid):
|
||||||
@login_required
|
@login_required
|
||||||
@can_edit(User, 'state')
|
@can_edit(User, 'state')
|
||||||
def state(request, user, userid):
|
def state(request, user, userid):
|
||||||
""" Changer l'etat actif/desactivé/archivé d'un user"""
|
""" Change the state (active/unactive/archived) of a user"""
|
||||||
state_form = StateForm(request.POST or None, instance=user)
|
state_form = StateForm(request.POST or None, instance=user)
|
||||||
if state_form.is_valid():
|
if state_form.is_valid():
|
||||||
if state_form.changed_data:
|
if state_form.changed_data:
|
||||||
|
|
Loading…
Reference in a new issue