mirror of
https://github.com/django/django.git
synced 2025-06-06 20:19:13 +00:00
[1.5.x] Fixed #20762 -- Clarified that add_fieldsets is not a standard ModelAdmin attribute.
Backport of dce8945ea6 from master
This commit is contained in:
parent
5d16e923b6
commit
cbfe56c856
@ -1071,6 +1071,8 @@ code would be required in the app's ``admin.py`` file::
|
|||||||
('Permissions', {'fields': ('is_admin',)}),
|
('Permissions', {'fields': ('is_admin',)}),
|
||||||
('Important dates', {'fields': ('last_login',)}),
|
('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 = (
|
add_fieldsets = (
|
||||||
(None, {
|
(None, {
|
||||||
'classes': ('wide',),
|
'classes': ('wide',),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user