From a4bb35e5de9b8d05724407d587384cf4154dc727 Mon Sep 17 00:00:00 2001 From: hamzawaleed01 Date: Wed, 14 Feb 2024 18:20:16 +0500 Subject: [PATCH 1/2] feat: add IntegratedChannelAPIRequestLogs list_display, search_fields and readonly_f ields --- .../integrated_channel/admin/__init__.py | 31 +++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/integrated_channels/integrated_channel/admin/__init__.py b/integrated_channels/integrated_channel/admin/__init__.py index 37c5e26c5a..41042bc142 100644 --- a/integrated_channels/integrated_channel/admin/__init__.py +++ b/integrated_channels/integrated_channel/admin/__init__.py @@ -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 From bd6af6faf0f4b72c39719e52b66008eb7668d236 Mon Sep 17 00:00:00 2001 From: hamzawaleed01 Date: Thu, 15 Feb 2024 15:39:38 +0500 Subject: [PATCH 2/2] docs: update changelog and bump version --- CHANGELOG.rst | 4 ++++ enterprise/__init__.py | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 0266516afb..21f004ee9c 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -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 diff --git a/enterprise/__init__.py b/enterprise/__init__.py index 8015450126..3bf0eda716 100644 --- a/enterprise/__init__.py +++ b/enterprise/__init__.py @@ -2,4 +2,4 @@ Your project description goes here. """ -__version__ = "4.11.12" +__version__ = "4.11.13"