Skip to content

Commit

Permalink
udpate admin
Browse files Browse the repository at this point in the history
  • Loading branch information
thelostone-mc committed Jan 8, 2020
1 parent e703dee commit 08f51d8
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion app/grants/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ def error_email_copy_not_active(self, instance):
class ContributionAdmin(GeneralAdmin):
"""Define the Contribution administration layout."""
raw_id_fields = ['subscription']
list_display = ['id', 'txn_url', 'tx_cleared', 'success', 'profile']
list_display = ['id', 'txn_url', 'profile', 'created_on', 'amount', 'token', 'tx_cleared', 'success']

def txn_url(self, obj):
tx_id = obj.tx_id
Expand All @@ -191,6 +191,12 @@ def txn_url(self, obj):
def profile(self, obj):
return obj.subscription.contributor_profile

def token(self, obj):
return obj.subscription.token_symbol

def amount(self, obj):
return obj.subscription.amount_per_period


admin.site.register(PhantomFunding, GeneralAdmin)
admin.site.register(MatchPledge, MatchPledgeAdmin)
Expand Down

0 comments on commit 08f51d8

Please sign in to comment.