Code

Ticket #20762: 20762.diff

File 20762.diff, 587 bytes (added by timo, 12 months ago)
Line 
1diff --git a/docs/topics/auth/customizing.txt b/docs/topics/auth/customizing.txt
2index 18c3012..b57f6e0 100644
3--- a/docs/topics/auth/customizing.txt
4+++ b/docs/topics/auth/customizing.txt
5@@ -1094,6 +1094,8 @@ code would be required in the app's ``admin.py`` file::
6             ('Personal info', {'fields': ('date_of_birth',)}),
7             ('Permissions', {'fields': ('is_admin',)}),
8         )
9+        # UserAdmin overrides get_fieldsets to use this attribute when creating
10+        # a user.
11         add_fieldsets = (
12             (None, {
13                 'classes': ('wide',),