I
.annotate(
item=Count(check, filter=Q(question__theme__category__in=u.category.all())
| Q(question__theme__category__isnull=True))
)
Size: a a a
I
.annotate(
item=Count(check, filter=Q(question__theme__category__in=u.category.all())
| Q(question__theme__category__isnull=True))
)
Б
O
Б
I
Б
Б
I
I
O
I
I
Б
COUNT(CASE WHEN "users_useranswer"."check" = False THEN 1 ELSE NULL END) AS "incorrect”,
O
I
Б
I
NC
Б
.annotate(
incorrect=Count(Case(When(check=False, then=1))),
)
.annotate(
incorrect = COUNT(DISTINCT(CASE WHEN "users_useranswer"."check" = False THEN 1 ELSE NULL END) AS "incorrect”)))),
)
AG
.annotate(
incorrect=Count(Case(When(check=False, then=1))),
)
.annotate(
incorrect = COUNT(DISTINCT(CASE WHEN "users_useranswer"."check" = False THEN 1 ELSE NULL END) AS "incorrect”)))),
)