diff --git a/docs/topics/auth/customizing.txt b/docs/topics/auth/customizing.txt index daec10c28e..7d287051d8 100644 --- a/docs/topics/auth/customizing.txt +++ b/docs/topics/auth/customizing.txt @@ -1162,13 +1162,14 @@ code would be required in the app's ``admin.py`` file:: add_fieldsets = ( (None, { 'classes': ('wide',), - 'fields': ('email', 'date_of_birth', 'password1', 'password2')} - ), + 'fields': ('email', 'date_of_birth', 'password1', 'password2'), + }), ) search_fields = ('email',) ordering = ('email',) filter_horizontal = () + # Now register the new UserAdmin... admin.site.register(MyUser, UserAdmin) # ... and, since we're not using Django's built-in permissions,