Skip to content

Commit dd0e2f2

Browse files
committed
Fix user creation in admin
1 parent 7a68648 commit dd0e2f2

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

oioioi/base/admin.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -359,6 +359,12 @@ class OioioiUserAdmin(UserAdmin, ObjectWithMixins, metaclass=ModelAdminMeta):
359359
(_("Permissions"), {'fields': ('is_active', 'is_superuser', 'groups')}),
360360
(_("Important dates"), {'fields': ('last_login', 'date_joined')}),
361361
)
362+
add_fieldsets = (
363+
(None, {
364+
'classes': ('wide',),
365+
'fields': ('username', 'password1', 'password2'),
366+
}),
367+
)
362368
list_filter = ['is_superuser', 'is_active']
363369
list_display = ['username', 'email', 'first_name', 'last_name', 'is_active']
364370
filter_horizontal = ()

0 commit comments

Comments
 (0)