From 35ae35e61f6d31d7446c63d9696f20803b81fd5b Mon Sep 17 00:00:00 2001 From: Tinashe <70011086+tinashechiraya@users.noreply.github.com> Date: Mon, 4 Mar 2024 14:26:24 +0200 Subject: [PATCH] patch: prevent error --- django_project/monitor/admin.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/django_project/monitor/admin.py b/django_project/monitor/admin.py index c85bf4ad4..89c17460e 100644 --- a/django_project/monitor/admin.py +++ b/django_project/monitor/admin.py @@ -51,7 +51,7 @@ class ObservationsAdmin(admin.ModelAdmin): list_filter = ('flag', 'is_validated',('obs_date', admin.DateFieldListFilter)) search_fields = ('site__site_name', 'site__river_name') autocomplete_fields = ('site', 'user') - # actions = [make_verified, make_unverified, 'download_records'] + actions = [make_verified, make_unverified, 'download_records'] inlines = (ObservationPestImageInline,) def save_formset(self, request, form, formset, change): @@ -84,7 +84,6 @@ def download_records(self, request, queryset): return response download_records.short_description = "Download selected records" - actions = [make_verified, make_unverified, 'download_records'] class SiteImageInline(admin.TabularInline):