Commit cbfe56c8 authored by Tim Graham's avatar Tim Graham
Browse files

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

Backport of dce8945e from master
parent 5d16e923
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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',),