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

Permet le changement de chambre force

This commit is contained in:
Gabriel Detraz 2016-11-25 22:50:53 +01:00 committed by Simon Brélivet
parent dd7d079fb9
commit 9ee42c0743

View file

@ -125,7 +125,7 @@ def edit_info(request, userid):
if not request.user.has_perms(('cableur',)):
user = BaseInfoForm(request.POST or None, instance=user)
else:
user = EditInfoForm(request.POST or None, instance=user)
user = InfoForm(request.POST or None, instance=user)
if user.is_valid():
with transaction.atomic(), reversion.create_revision():
user.save()