0
0
mirror of https://github.com/django/django.git synced 2024-12-01 15:42:04 +01:00

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

This commit is contained in:
Tim Graham 2013-07-18 12:41:01 -04:00
parent d7ba2bf3cf
commit dce8945ea6

View File

@ -1060,6 +1060,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',),