From 09ed4af65d62bbf3bdbe0d375b7c7744d1e865ec Mon Sep 17 00:00:00 2001 From: Pancham Agarwal Date: Fri, 8 Dec 2023 18:15:54 +0530 Subject: [PATCH] Add notification verification and cancel booking confirmation --- apps/nightpass/templates/lmao.html | 73 +++++++++++++++++++----------- apps/users/admin.py | 1 + 2 files changed, 47 insertions(+), 27 deletions(-) diff --git a/apps/nightpass/templates/lmao.html b/apps/nightpass/templates/lmao.html index f9a5965..b971c66 100644 --- a/apps/nightpass/templates/lmao.html +++ b/apps/nightpass/templates/lmao.html @@ -120,6 +120,17 @@ + + diff --git a/apps/users/admin.py b/apps/users/admin.py index f82626b..a2da4bc 100644 --- a/apps/users/admin.py +++ b/apps/users/admin.py @@ -83,6 +83,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') class SecurityAdmin(admin.ModelAdmin): list_display = ('name', 'admin_incharge', 'user')