Skip to content

Commit

Permalink
Integrated channel api logs loading fix (#2035)
Browse files Browse the repository at this point in the history
* fix: adding get_queryset for fix of integrated channel api logs loading
  • Loading branch information
MueezKhan246 committed Mar 13, 2024
1 parent 769115c commit bc48ee2
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
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.13.7]
---------
* fix: adding get_queryset for fix of integrated channel api logs loading

[4.13.6]
---------
* feat: disable failing transmissions for 24hrs
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.13.6"
__version__ = "4.13.7"
12 changes: 5 additions & 7 deletions integrated_channels/integrated_channel/admin/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,16 +99,10 @@ class IntegratedChannelAPIRequestLogAdmin(admin.ModelAdmin):

list_display = [
"endpoint",
"enterprise_customer",
"enterprise_customer_id",
"time_taken",
"status_code",
]
list_filter = [
"status_code",
"enterprise_customer",
"endpoint",
"time_taken",
]
search_fields = [
"status_code",
"enterprise_customer",
Expand All @@ -130,5 +124,9 @@ class IntegratedChannelAPIRequestLogAdmin(admin.ModelAdmin):

list_per_page = 20

def get_queryset(self, request):
queryset = super().get_queryset(request)
return queryset.select_related('enterprise_customer')

class Meta:
model = IntegratedChannelAPIRequestLogs

0 comments on commit bc48ee2

Please sign in to comment.