Skip to content

Commit

Permalink
add search to user pforile admin
Browse files Browse the repository at this point in the history
  • Loading branch information
ammar-faifi committed Nov 25, 2023
1 parent 42ec99b commit 2cb0618
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion account/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,11 @@ def send_message_email(self, request, queryset):

@admin.register(Profile)
class ProfileAdmin(admin.ModelAdmin):

list_display = ["user", "major", "year"]
search_fields = [
"user__username",
"user__email",
]


@admin.register(UserLog)
Expand Down

0 comments on commit 2cb0618

Please sign in to comment.