diff --git a/payment/admin.py b/payment/admin.py index 59f68e8..311d6a5 100644 --- a/payment/admin.py +++ b/payment/admin.py @@ -67,12 +67,13 @@ def has_delete_permission(self, request, obj=None): @admin.register(Transaction) class TransactionAdmin(admin.ModelAdmin): - readonly_fields = ['created'] + date_hierarchy = 'created' + ordering = ['-created'] + list_filter = ['kind', 'is_success'] + list_display = ['created', amount, 'kind', 'is_success', 'token', 'error'] + search_fields = ['token', 'payment__id'] - def has_module_permission(self, request): - # Prevent TransactionAdmin from appearing in the admin menu, - # to view a transaction detail users should start navigation from a Payment. - return False + readonly_fields = ['created'] ############################################################## diff --git a/setup.py b/setup.py index b5d9e99..2e31dc6 100644 --- a/setup.py +++ b/setup.py @@ -3,7 +3,7 @@ setup( name='django-payment', - version='1.6', + version='1.7', description='', long_description='', author='Nicholas Wolff',