From: Radek Czajka Date: Mon, 18 Jan 2021 10:35:47 +0000 (+0100) Subject: Funding data export. X-Git-Url: https://git.mdrn.pl/wolnelektury.git/commitdiff_plain/56de0191b3b81919a567dd9b89ed820c923d79dc?ds=sidebyside;hp=d5e9c90ba3f53d91c32c971a45bc778e29c74aaf Funding data export. --- 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):