8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-12-23 07:23:46 +00:00

Update views.py

This commit is contained in:
chirac 2018-07-20 12:59:24 +02:00
parent 0bec40de58
commit 6d8aeb6101

View file

@ -221,7 +221,7 @@ def edit_info(request, user, userid):
@login_required
@can_edit(User, 'state')
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)
if state_form.is_valid():
if state_form.changed_data: