PA
Size: a a a
PA
AG
N
AG
dictinct()
, на аннотированное поле, получаю ошибку:NotImplementedError: annotate() + distinct(fields) is not implemented.
.
DT
dictinct()
, на аннотированное поле, получаю ошибку:NotImplementedError: annotate() + distinct(fields) is not implemented.
Invoice.objects
.annotate(
received_company_pk=Subquery(
company_pk_subquery, output_field=IntegerField()
),
received_company=Subquery(
company_name_subquery, output_field=CharField()
)
)
.value('received_company')
.annotate(cnt=Count('received_company'))
AG
.
AG
.
AG
Invoice.objects
.annotate(
received_company_pk=Subquery(
company_pk_subquery, output_field=IntegerField()
),
received_company=Subquery(
company_name_subquery, output_field=CharField()
)
)
.value('received_company')
.annotate(cnt=Count('received_company'))
<QuerySet [('MDK', 3113)]>
DT
DT
<QuerySet [('MDK', 3113)]>
.
AG
[(received_company_pk, received_company),]
DT
AG
AG
.
W