Skip to content

Commit

Permalink
feat: add modified date to admin
Browse files Browse the repository at this point in the history
  • Loading branch information
igobranco committed Mar 21, 2024
1 parent 27ceb7c commit c2b5642
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions nau_extensions/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
class BasketTransactionIntegrationAdmin(admin.ModelAdmin):
list_filter = ('state',)
search_fields = ('basket', 'state',)
list_display = ('basket', 'state', 'created')
fields = ('basket', 'state', 'created', 'formatted_request', 'formatted_response')
readonly_fields = ('basket', 'state', 'created', 'formatted_request', 'formatted_response')
list_display = ('basket', 'state', 'created', 'modified')
fields = ('basket', 'state', 'created', 'modified', 'formatted_request', 'formatted_response')
readonly_fields = ('basket', 'state', 'created', 'modified', 'formatted_request', 'formatted_response')
show_full_result_count = False

def formatted_request(self, obj):
Expand Down

0 comments on commit c2b5642

Please sign in to comment.