Skip to content

Commit

Permalink
Ch26: Enable select_related on UserAdmin.
Browse files Browse the repository at this point in the history
  • Loading branch information
jambonrose committed Jul 30, 2015
1 parent 54840cb commit 3e60afb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions user/admin.py
Expand Up @@ -50,6 +50,7 @@ class UserAdmin(admin.ModelAdmin):
'is_staff',
'is_superuser',
'profile__joined')
list_select_related = ('profile',)
ordering = ('email',)
search_fields = ('email',)
# form view
Expand Down

0 comments on commit 3e60afb

Please sign in to comment.