Skip to content

Commit

Permalink
correct icontains
Browse files Browse the repository at this point in the history
  • Loading branch information
mittal-ishaan committed Nov 2, 2023
1 parent ca42a63 commit 1cccc85
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
5 changes: 3 additions & 2 deletions home/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down
1 change: 0 additions & 1 deletion messWebsite/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@
"django.middleware.clickjacking.XFrameOptionsMiddleware",
"messWebsite.middleware.LoginRequiredMiddleware",
'whitenoise.middleware.WhiteNoiseMiddleware',
'allauth.account.middleware.AccountMiddleware',
]

ROOT_URLCONF = "messWebsite.urls"
Expand Down

0 comments on commit 1cccc85

Please sign in to comment.