Skip to content

Commit

Permalink
Update select related for Deployments
Browse files Browse the repository at this point in the history
  • Loading branch information
mihow committed Jan 20, 2024
1 parent 64dfd16 commit d654a94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ami/main/api/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ class DeploymentViewSet(DefaultViewSet):
for the list and detail views.
"""

queryset = Deployment.objects.select_related("project")
queryset = Deployment.objects.select_related("project", "device", "research_site")
filterset_fields = ["project"]
ordering_fields = [
"created_at",
Expand Down

0 comments on commit d654a94

Please sign in to comment.