Skip to content

Commit

Permalink
Add event type as filter to WebhookEventAdmin
Browse files Browse the repository at this point in the history
  • Loading branch information
beheh committed Dec 18, 2018
1 parent a296eee commit 574e2a9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## Added
- Add "admin_url" property in PaypalObject model
- Add link to resource in WebhookEvent admin
- Add event type as filter to WebhookEventAdmin

## Fixed
- Fix dashboard url in Sale model
Expand Down
2 changes: 1 addition & 1 deletion djpaypal/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ class SaleAdmin(BasePaypalObjectAdmin):
@admin.register(models.WebhookEvent)
class WebhookEventAdmin(BasePaypalObjectAdmin):
list_display = ("event_type", "resource_type", "resource_id_link", "create_time")
list_filter = ("create_time", )
list_filter = ("create_time", "event_type")
ordering = ("-create_time", )
readonly_fields = (
"summary", "event_type", "resource_type", "resource_id_link", "create_time",
Expand Down

0 comments on commit 574e2a9

Please sign in to comment.