Loading docs/topics/auth/customizing.txt +2 −0 Original line number Diff line number Diff line Loading @@ -1071,6 +1071,8 @@ code would be required in the app's ``admin.py`` file:: ('Permissions', {'fields': ('is_admin',)}), ('Important dates', {'fields': ('last_login',)}), ) # add_fieldsets is not a standard ModelAdmin attribute. UserAdmin # overrides get_fieldsets to use this attribute when creating a user. add_fieldsets = ( (None, { 'classes': ('wide',), Loading Loading
docs/topics/auth/customizing.txt +2 −0 Original line number Diff line number Diff line Loading @@ -1071,6 +1071,8 @@ code would be required in the app's ``admin.py`` file:: ('Permissions', {'fields': ('is_admin',)}), ('Important dates', {'fields': ('last_login',)}), ) # add_fieldsets is not a standard ModelAdmin attribute. UserAdmin # overrides get_fieldsets to use this attribute when creating a user. add_fieldsets = ( (None, { 'classes': ('wide',), Loading