Skip to content

Commit

Permalink
Merge pull request #2022 from openedx/hamza/update-IntegratedChannelA…
Browse files Browse the repository at this point in the history
…PIRequestLogs-list-view

Update IntegratedChannelAPIRequestLogs list view
  • Loading branch information
hamzawaleed01 authored Feb 15, 2024
2 parents 9d00524 + bd6af6f commit 7f2959b
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ Change Log
Unreleased
----------
[4.11.13]
---------
* feat: Update IntegratedChannelAPIRequestLogs list view

[4.11.12]
---------
* feat: new enterprise models relating to enterprise groups
Expand Down
2 changes: 1 addition & 1 deletion enterprise/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
Your project description goes here.
"""

__version__ = "4.11.12"
__version__ = "4.11.13"
31 changes: 31 additions & 0 deletions integrated_channels/integrated_channel/admin/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,5 +97,36 @@ class IntegratedChannelAPIRequestLogAdmin(admin.ModelAdmin):
Django admin model for IntegratedChannelAPIRequestLogs.
"""

list_display = [
"endpoint",
"enterprise_customer",
"time_taken",
"status_code",
]
list_filter = [
"status_code",
"enterprise_customer",
"endpoint",
"time_taken",
]
search_fields = [
"status_code",
"enterprise_customer",
"enterprise_customer_configuration_id",
"endpoint",
"time_taken",
"response_body",
"payload",
]
readonly_fields = [
"status_code",
"enterprise_customer",
"enterprise_customer_configuration_id",
"endpoint",
"time_taken",
"response_body",
"payload",
]

class Meta:
model = IntegratedChannelAPIRequestLogs

0 comments on commit 7f2959b

Please sign in to comment.