Skip to content

Commit

Permalink
Optimize /api/quality/conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
zhiltsov-max committed Jan 24, 2025
1 parent 47ba880 commit 0390f7b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions cvat/apps/quality_control/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@
)
class QualityConflictsViewSet(viewsets.GenericViewSet, mixins.ListModelMixin):
queryset = (
AnnotationConflict.objects.select_related(
AnnotationConflict.objects
.prefetch_related(
"report",
"report__parent",
"report__job",
Expand All @@ -72,11 +73,8 @@ class QualityConflictsViewSet(viewsets.GenericViewSet, mixins.ListModelMixin):
"report__job__segment__task__organization",
"report__task",
"report__task__organization",
)
.prefetch_related(
"annotation_ids",
)
.all()
)

iam_organization_field = [
Expand Down

0 comments on commit 0390f7b

Please sign in to comment.