Ticket #5402: fieldsets-for-user.diff
File fieldsets-for-user.diff, 546 bytes (added by , 17 years ago) |
---|
-
django/contrib/auth/models.py
=== modified file 'django/contrib/auth/models.py'
343 343 filter_horizontal = ('permissions',) 344 344 345 345 class UserAdmin(admin.ModelAdmin): 346 fields = (346 fieldsets = ( 347 347 (None, {'fields': ('username', 'password')}), 348 348 (_('Personal info'), {'fields': ('first_name', 'last_name', 'email')}), 349 349 (_('Permissions'), {'fields': ('is_staff', 'is_active', 'is_superuser', 'user_permissions')}),