Ticket #5402: fieldsets-for-user.diff

File fieldsets-for-user.diff, 546 bytes (added by Petr Marhoun <petr.marhoun@…>, 8 years ago)
  • django/contrib/auth/models.py

    === modified file 'django/contrib/auth/models.py'
     
    343343    filter_horizontal = ('permissions',)
    344344
    345345class UserAdmin(admin.ModelAdmin):
    346     fields = (
     346    fieldsets = (
    347347        (None, {'fields': ('username', 'password')}),
    348348        (_('Personal info'), {'fields': ('first_name', 'last_name', 'email')}),
    349349        (_('Permissions'), {'fields': ('is_staff', 'is_active', 'is_superuser', 'user_permissions')}),
Back to Top