Skip to content

Commit 74e8082

Browse files
committed
Use annotation FK for report instead of field name
1 parent 02c54e0 commit 74e8082

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

api/views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -687,7 +687,7 @@ class AnnotationViewSet(IdentificationTaskNestedAttribute, NestedViewSetMixin, L
687687
)
688688
)
689689
).annotate(
690-
report_pk_str=models.functions.Cast('report', output_field=models.CharField()),
690+
report_pk_str=models.functions.Cast('report_id', output_field=models.CharField()),
691691
)
692692

693693
serializer_class = AnnotationSerializer

0 commit comments

Comments
 (0)