From 1cccc85a4534978b52c33fb92056e182636e6534 Mon Sep 17 00:00:00 2001 From: Ishaan Mittal Date: Thu, 2 Nov 2023 12:37:00 +0530 Subject: [PATCH] correct icontains --- home/admin.py | 5 +++-- messWebsite/settings.py | 1 - 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/home/admin.py b/home/admin.py index dfc99db..8647e84 100644 --- a/home/admin.py +++ b/home/admin.py @@ -374,7 +374,7 @@ class about_Admin(admin.ModelAdmin): class about_Admin(ImportExportModelAdmin, admin.ModelAdmin): resource_class = LongRebateResource model = LongRebate - search_fields = ("email","approved", "date_applied", ) + search_fields = ("email__email","approved", "date_applied", ) list_filter = ("approved", "date_applied", "days") list_display = ( "email", @@ -452,11 +452,12 @@ class about_Admin(ImportExportModelAdmin, admin.ModelAdmin): "date_applied", "start_date", "end_date", + "email__email", ) list_filter = ("approved", "date_applied", "start_date", "end_date") list_display = ( "date_applied", - "allocation_id", + "email", "start_date", "end_date", "approved", diff --git a/messWebsite/settings.py b/messWebsite/settings.py index 3f480c6..2f9cccd 100644 --- a/messWebsite/settings.py +++ b/messWebsite/settings.py @@ -54,7 +54,6 @@ "django.middleware.clickjacking.XFrameOptionsMiddleware", "messWebsite.middleware.LoginRequiredMiddleware", 'whitenoise.middleware.WhiteNoiseMiddleware', - 'allauth.account.middleware.AccountMiddleware', ] ROOT_URLCONF = "messWebsite.urls"