Skip to content

Commit 3ba4ffc

Browse files
committed
Add UserProfile search
1 parent f97bccd commit 3ba4ffc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tigerpath/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ def __str__(self):
188188

189189

190190
class UserProfileAdmin(admin.ModelAdmin):
191-
search_fields = ["user", "major", "year"]
191+
search_fields = ["profile__username"]
192192

193193

194194
@receiver(post_save, sender=User)

0 commit comments

Comments
 (0)