Merge pull request #2 from TelegramExchange/feat/projects-analytics

feat: add projects analytics endpoint
This commit is contained in:
Artem
2026-01-09 11:21:37 +03:00
committed by GitHub
7 changed files with 424 additions and 4 deletions

View File

@@ -495,7 +495,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()