fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Better experiments management.
[wolnelektury.git]
/
src
/
pz
/
admin.py
diff --git
a/src/pz/admin.py
b/src/pz/admin.py
index
9687948
..
1373a56
100644
(file)
--- a/
src/pz/admin.py
+++ b/
src/pz/admin.py
@@
-60,6
+60,7
@@
class DirectDebitAdmin(admin.ModelAdmin):
list_display = [
'payment_id', 'acquisition_date',
'iban_valid',
list_display = [
'payment_id', 'acquisition_date',
'iban_valid',
+ 'latest_status',
'bank_submission_date',
'bank_acceptance_date',
'amount', 'first_name', 'last_name',
'bank_submission_date',
'bank_acceptance_date',
'amount', 'first_name', 'last_name',
@@
-78,11
+79,14
@@
class DirectDebitAdmin(admin.ModelAdmin):
'fundraiser',
'campaign',
('cancelled_at', EmptyFieldListFilter),
'fundraiser',
'campaign',
('cancelled_at', EmptyFieldListFilter),
+ 'latest_status',
'needs_redo',
'optout',
'amount',
'sex',
'is_consumer',
'needs_redo',
'optout',
'amount',
'sex',
'is_consumer',
+ ('fundraiser_commission', EmptyFieldListFilter),
+ ('fundraiser_bonus', EmptyFieldListFilter),
]
fieldsets = [
(None, {
]
fieldsets = [
(None, {
@@
-94,7
+98,7
@@
class DirectDebitAdmin(admin.ModelAdmin):
('postal_code', 'phone'),
'email',
('iban', 'iban_valid', 'iban_warning'),
('postal_code', 'phone'),
'email',
('iban', 'iban_valid', 'iban_warning'),
-
'payment_id'
,
+
('payment_id', 'latest_status')
,
'agree_contact',
'agree_fundraising',
'agree_newsletter',
'agree_contact',
'agree_fundraising',
'agree_newsletter',
@@
-108,6
+112,7
@@
class DirectDebitAdmin(admin.ModelAdmin):
('cancelled_at', 'needs_redo', 'optout'),
'submission_date',
'fundraiser_commission',
('cancelled_at', 'needs_redo', 'optout'),
'submission_date',
'fundraiser_commission',
+ 'fundraiser_bonus',
'fundraiser_bill',
'bank_submission_date',
'bank_acceptance_date',
'fundraiser_bill',
'bank_submission_date',
'bank_acceptance_date',
@@
-115,7
+120,7
@@
class DirectDebitAdmin(admin.ModelAdmin):
]
})
]
]
})
]
- readonly_fields = ['agree_contact', 'iban_valid', 'iban_warning']
+ readonly_fields = ['agree_contact', 'iban_valid', 'iban_warning'
, 'latest_status'
]
inlines = [BankExportFeedbackLineInline]
def set_bank_submission(m, r, q):
inlines = [BankExportFeedbackLineInline]
def set_bank_submission(m, r, q):