Z
Size: a a a
Z
AK
DT
DT
Z
DT
AK
Z
DT
DТ
Z
DT
Z
Z
Z
DT
Z
DT
polls = Poll.objects.filter(block=OuterRef('object_id'))
steps = Step.objects.filter(block=obj).annotate(
poll_text=Subquery(polls[:1].text)
)
DT
polls = Poll.objects.filter(block=OuterRef('object_id'))
steps = Step.objects.filter(block=obj).annotate(
poll_text=Subquery(polls.values('text')[:1])
)
DT