Skip to content

Commit 0275fe5

Browse files
committed
Merge pull request #1708 from learning-unlimited/is-superuser
Added is_superuser back to ESPUser on admin panel
2 parents cf378bf + 99092df commit 0275fe5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

esp/esp/users/admin.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,15 @@ def parent_program(obj): #because 'event__program' for some reason doesn't want
3737
admin_site.register(UserAvailability, UserAvailabilityAdmin)
3838

3939
class ESPUserAdmin(UserAdmin):
40-
#remove the user_permissions and is_superuser from adminpage
41-
#(since we don't use either of those)
40+
#remove the user_permissions from adminpage
41+
#(since we don't use it)
4242
#See https://github.com/django/django/blob/stable/1.3.x/django/contrib/auth/admin.py
4343

4444
from django.utils.translation import ugettext_lazy as _
4545
fieldsets = (
4646
(None, {'fields': ('username', 'password')}),
4747
(_('Personal info'), {'fields': ('first_name', 'last_name', 'email')}),
48-
(_('Permissions'), {'fields': ('is_active', 'is_staff',)}),
48+
(_('Permissions'), {'fields': ('is_active', 'is_staff', 'is_superuser')}),
4949
(_('Important dates'), {'fields': ('last_login', 'date_joined')}),
5050
(_('User Roles'), {'fields': ('groups',)}),
5151
)

0 commit comments

Comments
 (0)