From 347f810b2659c6c4922164edbaef78e8b08188a6 Mon Sep 17 00:00:00 2001 From: Ishaan Mittal Date: Mon, 28 Oct 2024 11:38:10 +0530 Subject: [PATCH] add search by email (#94) --- home/admin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/home/admin.py b/home/admin.py index 55a1d01..ea064c6 100644 --- a/home/admin.py +++ b/home/admin.py @@ -251,7 +251,7 @@ class about_Admin(admin.ModelAdmin): class about_Admin(ImportExportMixin, admin.ModelAdmin): resource_class = StudentResource model = Student - search_fields = ("name", "roll_no", "hostel", "degree", "department") + search_fields = ("name", "roll_no", "hostel", "degree", "department", "email") list_display = ("name", "roll_no", "hostel", "email") list_filter = ("hostel", "degree", "department") fieldsets = (