Skip to content

Commit

Permalink
Merge pull request getsentry#814 from DamianZaremba/make_user_admin
Browse files Browse the repository at this point in the history
Allow promoting a user to admin via the manage users page.
  • Loading branch information
dcramer committed Mar 3, 2013
2 parents bb00a38 + 642e099 commit 7a80739
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/sentry/web/forms/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,11 @@ class Meta:


class ChangeUserForm(BaseUserForm):
is_staff = forms.BooleanField(required=False, label=_('Admin'),
help_text=_("Designates whether this user can perform administrative functions."))

class Meta:
fields = ('first_name', 'username', 'email', 'is_active')
fields = ('first_name', 'username', 'email', 'is_active', 'is_staff')
model = User


Expand Down

0 comments on commit 7a80739

Please sign in to comment.