feat: add projects analytics endpoint

This commit is contained in:
ivannoskov
2026-01-09 02:25:38 +03:00
parent 30791d7f76
commit 1b9d767005
7 changed files with 424 additions and 4 deletions

View File

@@ -491,7 +491,14 @@ class Postgres(DatabaseBase, Database):
return (
await query.prefetch_related(
'project', 'project__channel', 'purchase_channel', 'purchase_channel__channel', 'creative', 'post', 'post__channel'
'project',
'project__channel',
'purchase_channel',
'purchase_channel__channel',
'purchase_channel__purchase',
'creative',
'post',
'post__channel',
)
.order_by('-wanted_placement_date')
.all()