fnp
/
wolnelektury.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
d5e9c90
)
Funding data export.
author
Radek Czajka
<rczajka@rczajka.pl>
Mon, 18 Jan 2021 10:35:47 +0000
(11:35 +0100)
committer
Radek Czajka
<rczajka@rczajka.pl>
Mon, 18 Jan 2021 10:35:47 +0000
(11:35 +0100)
src/funding/admin.py
patch
|
blob
|
history
diff --git
a/src/funding/admin.py
b/src/funding/admin.py
index
a59704d
..
244ac6a
100644
(file)
--- 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 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
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]
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):
class SpentAdmin(admin.ModelAdmin):