From c055260bb88fd407c81ad0d40dd288a5aae4fb17 Mon Sep 17 00:00:00 2001 From: Mitch Riedstra Date: Tue, 7 Nov 2017 13:02:09 -0500 Subject: Updated middleware to force creation of user Identity. Fix issues with Identity creation. Added is_active to Django Admin UI for the dispatchAuth.models.User --- app/dispatchAuth/admin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/dispatchAuth') diff --git a/app/dispatchAuth/admin.py b/app/dispatchAuth/admin.py index 67b1170..38ec7a6 100644 --- a/app/dispatchAuth/admin.py +++ b/app/dispatchAuth/admin.py @@ -68,7 +68,7 @@ class UserAdmin(BaseUserAdmin): fieldsets = ( (None, {'fields': ('email', 'password')}), ('Personal info', {'fields': ('first_name','last_name')}), - ('Permissions', {'fields': ('is_superuser',)}), + ('Permissions', {'fields': ('is_superuser','is_active')}), ) # add_fieldsets is not a standard ModelAdmin attribute. UserAdmin # overrides get_fieldsets to use this attribute when creating a user. -- cgit v1.2.3