File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
readthedocs/projects/views Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -632,7 +632,9 @@ class WebHookExchangeDetail(WebHookMixin, DetailView):
632
632
template_name = 'projects/webhook_exchange_detail.html'
633
633
634
634
def get_queryset (self ):
635
- return self .model .objects .filter (webhook = self .get_webhook ())
635
+ # NOTE: We are explicitly using the id instead of the the object
636
+ # to avoid a bug where the id is wrongly casted as an uuid.
637
+ return self .model .objects .filter (webhook__id = self .get_webhook ().id )
636
638
637
639
def get_webhook (self ):
638
640
return get_object_or_404 (
@@ -916,7 +918,9 @@ class IntegrationExchangeDetail(IntegrationMixin, DetailView):
916
918
template_name = 'projects/integration_exchange_detail.html'
917
919
918
920
def get_queryset (self ):
919
- return self .model .objects .filter (integrations = self .get_integration ())
921
+ # NOTE: We are explicitly using the id instead of the the object
922
+ # to avoid a bug where the id is wrongly casted as an uuid.
923
+ return self .model .objects .filter (integrations__id = self .get_integration ().id )
920
924
921
925
def get_object (self ):
922
926
return DetailView .get_object (self )
You can’t perform that action at this time.
0 commit comments