Kaydet (Commit) dce8945e authored tarafından Tim Graham's avatar Tim Graham

Fixed #20762 -- Clarified that add_fieldsets is not a standard ModelAdmin attribute.

üst d7ba2bf3
...@@ -1060,6 +1060,8 @@ code would be required in the app's ``admin.py`` file:: ...@@ -1060,6 +1060,8 @@ code would be required in the app's ``admin.py`` file::
('Personal info', {'fields': ('date_of_birth',)}), ('Personal info', {'fields': ('date_of_birth',)}),
('Permissions', {'fields': ('is_admin',)}), ('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 = ( add_fieldsets = (
(None, { (None, {
'classes': ('wide',), 'classes': ('wide',),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment