diff options
| author | Nuno <nuno.hespanhol@gmail.com> | 2019-07-08 06:39:28 +0100 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2019-07-08 07:39:28 +0200 |
| commit | 34a88b21dae71a26a9b136b599e5cbcf817eae16 (patch) | |
| tree | 8380c1b4e8d679784f4e854ea22497d5e8738910 /docs | |
| parent | 53209f78302a639032afabf5326d28d4ddd9d03c (diff) | |
Fixed #30620 -- Made an example of admin-compliant custom user app pep8 compliant.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/topics/auth/customizing.txt | 5 |
1 files changed, 3 insertions, 2 deletions
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, |
