django admin improvement complete

This commit is contained in:
IGNY8 VPS (Salman)
2025-12-15 01:38:41 +00:00
parent cda56f15ba
commit 125489df0f
14 changed files with 526 additions and 68 deletions

View File

@@ -35,7 +35,7 @@ def revenue_report(request):
# Plan distribution
plan_distribution = Plan.objects.annotate(
account_count=Count('account')
account_count=Count('accounts')
).values('name', 'account_count')
# Payment method breakdown
@@ -213,7 +213,7 @@ def data_quality_report(request):
# Duplicate keywords
from igny8_core.modules.planner.models import Keywords
duplicates = Keywords.objects.values('keyword', 'site', 'sector').annotate(
duplicates = Keywords.objects.values('seed_keyword', 'site', 'sector').annotate(
count=Count('id')
).filter(count__gt=1).count()
if duplicates > 0: