From 56de0191b3b81919a567dd9b89ed820c923d79dc Mon Sep 17 00:00:00 2001 From: Radek Czajka Date: Mon, 18 Jan 2021 11:35:47 +0100 Subject: [PATCH 1/1] Funding data export. --- src/funding/admin.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/funding/admin.py b/src/funding/admin.py index a59704dbd..244ac6a73 100644 --- a/src/funding/admin.py +++ b/src/funding/admin.py @@ -3,6 +3,7 @@ # from django.utils.translation import ugettext_lazy as _ from django.contrib import admin +from fnpdjango.actions import export_as_csv_action from .models import Offer, Perk, Funding, Spent @@ -59,6 +60,7 @@ class FundingAdmin(admin.ModelAdmin): list_display = ['payed_at', 'offer', 'amount', 'name', 'email', 'perk_names'] search_fields = ['name', 'email', 'offer__title', 'offer__author'] list_filter = [PayedFilter, 'offer', PerksFilter] + actions = [export_as_csv_action()] class SpentAdmin(admin.ModelAdmin): -- 2.20.1