Skip to content

Commit

Permalink
year filter for student model
Browse files Browse the repository at this point in the history
  • Loading branch information
Pancham1603 committed Feb 3, 2024
1 parent 5868149 commit e61080e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/users/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ class StudentAdmin(ImportExportModelAdmin):
autocomplete_fields = ('user',)
resource_class = StudentResource
readonly_fields = ('hostel_checkin_time', 'hostel_checkout_time', 'last_checkout_time',)
list_filter = ('hostel', 'has_booked', 'violation_flags')
list_filter = ('hostel', YearWiseFilter,'has_booked', 'violation_flags')

class SecurityAdmin(admin.ModelAdmin):
list_display = ('name', 'admin_incharge', 'user')
Expand Down

0 comments on commit e61080e

Please sign in to comment.