From 1b538783cb3877dfa60b4fc80f087d89798b66b2 Mon Sep 17 00:00:00 2001 From: Trishant Kumar Talluri Date: Thu, 21 Dec 2023 13:25:30 +0530 Subject: [PATCH 1/4] removed High Tea from export allocation --- README.md | 2 +- home/admin.py | 6 +++--- home/resources.py | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 8003ff1..b4a4fc1 100644 --- a/README.md +++ b/README.md @@ -70,7 +70,7 @@ Before you begin, ensure you have the following installed: 2. Navigate to the project directory: ```shell - cd team_22 + cd Mess-Website ``` 3. Install all dependencies diff --git a/home/admin.py b/home/admin.py index b720770..d84a833 100644 --- a/home/admin.py +++ b/home/admin.py @@ -47,12 +47,12 @@ from import_export.admin import ImportExportModelAdmin, ImportExportMixin from .resources import ( StudentResource, - AllocationResource, + # AllocationResource, RebateResource, RebateBillsResource, UnregisteredStudentResource, LongRebateResource, - CatererBillsResource, + # CatererBillsResource, StudentBillsResource, CatererBillsNewResource, AllocationNewResource, @@ -862,7 +862,7 @@ class about_Admin(ImportExportModelAdmin, admin.ModelAdmin): "period", "student_id", "caterer", - "high_tea", + # "high_tea", "jain", "first_pref", "second_pref", diff --git a/home/resources.py b/home/resources.py index b9428c0..cdd93ed 100644 --- a/home/resources.py +++ b/home/resources.py @@ -76,7 +76,7 @@ class AllocationNewResource(resources.ModelResource): period = fields.Field(attribute="period", column_name="Period") student_id = fields.Field(attribute="student_id", column_name="Student ID") caterer__name = fields.Field(attribute="caterer__name", column_name="Caterer Allocated") - high_tea = fields.Field(attribute="high_tea", column_name="High Tea") + # high_tea = fields.Field(attribute="high_tea", column_name="High Tea") jain = fields.Field(attribute="jain", column_name="Jain") first_pref = fields.Field(attribute="first_pref", column_name="First Preferences") second_pref = fields.Field( @@ -99,7 +99,7 @@ class Meta: "period", "student_id", "caterer__name", - "high_tea", + # "high_tea", "jain", "first_pref", "second_pref", @@ -116,7 +116,7 @@ class Meta: "email__room_no", "student_id", "caterer__name", - "high_tea", + # "high_tea", "jain", "first_pref", "second_pref", From 5065fbc997114c67cb9be07ce22c245e4a781841 Mon Sep 17 00:00:00 2001 From: chiranjivi Date: Thu, 21 Dec 2023 13:35:14 +0530 Subject: [PATCH 2/4] c --- messWebsite/settings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/messWebsite/settings.py b/messWebsite/settings.py index 2f9cccd..ef361da 100644 --- a/messWebsite/settings.py +++ b/messWebsite/settings.py @@ -16,7 +16,7 @@ SECRET_KEY = env('SECRET_KEY') # SECURITY WARNING: don't run with debug turned on in production! -DEBUG = True +DEBUG = False ALLOWED_HOSTS = ["diningfee.iiti.ac.in","127.0.0.1"] CSRF_TRUSTED_ORIGINS = ['http://diningfee.iiti.ac.in'] From 8d4ce8c00a2cffbfa2a485264ccf202f7d63fca1 Mon Sep 17 00:00:00 2001 From: chiranjivi Date: Thu, 21 Dec 2023 14:08:32 +0530 Subject: [PATCH 3/4] Hi-Tea removed --- templates/allocationForm.html | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/templates/allocationForm.html b/templates/allocationForm.html index 717c40f..b3aa867 100644 --- a/templates/allocationForm.html +++ b/templates/allocationForm.html @@ -26,9 +26,9 @@

Period of Allocation: {{ allocation_form_details.period.start_date }} to {{ allocation_form_details.period.end_date }}
-
+