Skip to content

Commit

Permalink
add search by email (#94)
Browse files Browse the repository at this point in the history
  • Loading branch information
mittal-ishaan authored Oct 28, 2024
1 parent 6747e09 commit 347f810
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion home/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = (
Expand Down

0 comments on commit 347f810

Please sign in to comment.