Skip to content

Commit

Permalink
Add securityscan to select related
Browse files Browse the repository at this point in the history
  • Loading branch information
matyldv committed Jan 14, 2025
1 parent 7bdd155 commit 13de8c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ralph/virtual/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ class CloudHostViewSet(BaseObjectViewSetMixin, RalphAPIViewSet):
select_related = [
'parent', 'parent__cloudproject', 'cloudprovider', 'hypervisor',
'service_env__service', 'service_env__environment', 'content_type',
'configuration_path__module',
'configuration_path__module', 'securityscan'
]
prefetch_related = base_object_descendant_prefetch_related + [
'tags', 'cloudflavor__virtualcomponent_set__model', 'licences',
Expand Down Expand Up @@ -280,7 +280,7 @@ class VirtualServerViewSet(BaseObjectViewSetMixin, RalphAPIViewSet):
save_serializer_class = VirtualServerSaveSerializer
select_related = VirtualServerAdmin.list_select_related + [
'parent', 'service_env__service', 'service_env__environment',
'configuration_path', 'content_type', 'parent__cluster__type'
'configuration_path', 'content_type', 'parent__cluster__type', 'securityscan'
]
prefetch_related = base_object_descendant_prefetch_related + [
'tags',
Expand Down

0 comments on commit 13de8c6

Please sign in to comment.