Skip to content

Commit

Permalink
Réparation de la promotion superuser
Browse files Browse the repository at this point in the history
  • Loading branch information
Eskimon committed Aug 6, 2014
1 parent fc3bd02 commit a4ac9c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions zds/member/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -896,7 +896,7 @@ def settings_promote(request, user_pk):
if request.method == "POST":
form = PromoteMemberForm(request.POST)
data = dict(form.data.iterlists())

print data
groups = Group.objects.all()
staff_group = Group.objects.get(id=settings.STAFFGROUPID)
if 'groups' in data:
Expand All @@ -919,7 +919,7 @@ def settings_promote(request, user_pk):
for topic in topics_staff:
follow(topic, user)

if 'superuser' in data and data['superuser'] == "on":
if 'superuser' in data and u'on' in data['superuser']:
user.is_superuser = True
messages.success(request, u'{0} est maintenant super-utilisateur'.format(user.username))
else:
Expand Down

0 comments on commit a4ac9c6

Please sign in to comment.