Skip to content

Commit

Permalink
Merge e707726 into bda97c2
Browse files Browse the repository at this point in the history
  • Loading branch information
poxip committed Jul 2, 2019
2 parents bda97c2 + e707726 commit f34a0c5
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.txt
@@ -1,5 +1,9 @@
# Change Log
All notable changes to this project will be documented in this file.
## [0.8.3]
### Added
- filters to admin StripeCharge list

## [0.8.2]
### Added
- Signal "stripe_charge_refunded" on refund
Expand Down
4 changes: 2 additions & 2 deletions aa_stripe/__init__.py
@@ -1,9 +1,9 @@
# -*- coding: utf-8 -*-
__title__ = "Arabella Stripe"
__version__ = "0.8.2"
__version__ = "0.8.3"
__author__ = "Jacek Ostanski"
__license__ = "MIT"
__copyright__ = "Copyright 2017 Arabella"
__copyright__ = "Copyright 2019 Arabella"

# Version synonym
VERSION = __version__
8 changes: 7 additions & 1 deletion aa_stripe/admin.py
Expand Up @@ -44,9 +44,15 @@ class StripeCustomerAdmin(ReadOnly):


class StripeChargeAdmin(ReadOnly):
list_display = ("id", "user", "customer", "created", "updated", "object_id", "is_charged", "amount")
search_fields = ("user__email", "customer__stripe_customer_id")
list_display = ("id", "user", "stripe_customer_id", "created", "updated", "object_id", "is_charged", "amount")
list_filter = ("created", "updated", "is_charged")
ordering = ("-created",)

def stripe_customer_id(self, obj):
if obj.customer:
return obj.customer.stripe_customer_id


class StripeCouponAdmin(admin.ModelAdmin):
form = StripeCouponForm
Expand Down

0 comments on commit f34a0c5

Please sign in to comment.