diff --git a/django_project/monitor/admin.py b/django_project/monitor/admin.py index d6d8829b3..cad21dabd 100644 --- a/django_project/monitor/admin.py +++ b/django_project/monitor/admin.py @@ -93,6 +93,8 @@ def download_records(self, request, queryset): return response download_records.short_description = "Download selected records" + actions = ['download_records'] + class SiteImageInline(admin.TabularInline): model = SiteImage @@ -113,4 +115,3 @@ class SitesAdmin(admin.ModelAdmin): admin.site.register(ObservationPestImage) admin.site.register(Assessment, admin.ModelAdmin) -admin.site.add_action('download_records')