Commit 579ca9ee authored by Tim Graham's avatar Tim Graham
Browse files

[1.6.x] Fixed #20762 -- Clarified that add_fieldsets is not a standard ModelAdmin attribute.

Backport of dce8945e from master
parent fcd5f3a8
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1094,6 +1094,8 @@ code would be required in the app's ``admin.py`` file::
            ('Personal info', {'fields': ('date_of_birth',)}),
            ('Permissions', {'fields': ('is_admin',)}),
        )
        # 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',),