Skip to content

Commit

Permalink
Fix search not working on Volunteer Attendance admin page.
Browse files Browse the repository at this point in the history
  • Loading branch information
garg3133 authored Sep 6, 2024
1 parent 1ee8b6e commit 47d4d7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/volunteers/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def get_section(self, obj):
@admin.register(VolunteerAttendance)
class VolunteerAttendanceAdmin(admin.ModelAdmin):
list_display = ('cal_date', 'get_roll', 'get_name', 'present', 'extra')
search_fields = ('cal_date', 'volun__roll_no',
search_fields = ('volun__roll_no',
'volun__profile__first_name', 'volun__profile__last_name')
list_filter = ('volun__batch', 'present', 'extra')
ordering = ('-cal_date', '-volun__batch', 'volun__roll_no')
Expand Down

0 comments on commit 47d4d7b

Please sign in to comment.