Skip to content

Commit

Permalink
Fix job removal
Browse files Browse the repository at this point in the history
  • Loading branch information
zhiltsov-max committed Sep 30, 2024
1 parent 8460d5d commit a1bb881
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cvat/apps/engine/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -1768,7 +1768,7 @@ def perform_destroy(self, instance):
raise ValidationError("Only ground truth jobs can be removed")

validation_layout: Optional[models.ValidationLayout] = getattr(
instance.segment.task.data.validation_mode, None
instance.segment.task.data, 'validation_layout', None
)
if (validation_layout and validation_layout.mode == models.ValidationMode.GT_POOL):
raise ValidationError(
Expand Down

0 comments on commit a1bb881

Please sign in to comment.