Skip to content

Commit

Permalink
Merge pull request #145 from mattions/switching-to-username-filed-for…
Browse files Browse the repository at this point in the history
…-search

Fix the search on EmailAddress admin.
  • Loading branch information
brosner committed Nov 19, 2014
2 parents 09eb522 + 475e4a4 commit f2c5941
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion account/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class SignupCodeAdmin(admin.ModelAdmin):

class EmailAddressAdmin(admin.ModelAdmin):
list_display = ["user", "email", "verified", "primary"]
search_fields = ["user", "email"]
search_fields = ["email", "user__username"]
list_filter = ["user"]


Expand Down

0 comments on commit f2c5941

Please sign in to comment.