Ticket #20762: 20762.diff

File 20762.diff, 587 bytes (added by timo, 2 years ago)
  • docs/topics/auth/customizing.txt

    diff --git a/docs/topics/auth/customizing.txt b/docs/topics/auth/customizing.txt
    index 18c3012..b57f6e0 100644
    a b code would be required in the app's ``admin.py`` file:: 
    10941094            ('Personal info', {'fields': ('date_of_birth',)}),
    10951095            ('Permissions', {'fields': ('is_admin',)}),
    10961096        )
     1097        # UserAdmin overrides get_fieldsets to use this attribute when creating
     1098        # a user.
    10971099        add_fieldsets = (
    10981100            (None, {
    10991101                'classes': ('wide',),
Back to Top