Skip to content

Commit ef35004

Browse files
committed
Require user email in admin "add user" form
1 parent 446499d commit ef35004

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

accounts/admin.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,10 @@ class FreesoundUserAdmin(DjangoObjectActions, UserAdmin):
140140
('Personal info', {'fields': ('email', )}),
141141
('Permissions', {'fields': ('is_active', 'is_staff', 'is_superuser', 'groups')}),
142142
('Important dates', {'fields': ('last_login', 'date_joined')}),
143-
)
143+
)
144+
add_fieldsets = (
145+
(None, {'fields': ('username', 'email', 'password1', 'password2')}),
146+
)
144147

145148
paginator = LargeTablePaginator
146149

0 commit comments

Comments
 (0)