DT
строчка номер 16
assert request is not None, "request is null"
Size: a a a
DT
DT
NK
DT
NK
DT
А
NK
DT
DialogueSerializer(page, many=True, context=self.get_serializer_context())
DT
D
NK
DialogueSerializer(page, many=True, context=self.get_serializer_context())
DT
А
AG
# annotate():
suitable_company=Case(
When(orders__client__company_id=company_id, then=True),
default=False,
)
orders
- M2M поле;client
- FK поле у каждого 'orders' (у всех orders
клиенты с одинаковым company_id
);company
- FK поле у 'client';orders__client__company_id=company_id
?orders
или только у первого/последнего найденного?NK
AG
А
AG