summaryrefslogtreecommitdiff
path: root/app/income/admin.py
diff options
context:
space:
mode:
Diffstat (limited to 'app/income/admin.py')
-rw-r--r--app/income/admin.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/app/income/admin.py b/app/income/admin.py
index 02c01ef..c4e858a 100644
--- a/app/income/admin.py
+++ b/app/income/admin.py
@@ -60,6 +60,11 @@ class GigAdmin(OSMGeoAdmin):
created__month=month,
status__in=[1, 2, 3]
)
+ context['pitched'] = self.model.objects.filter(
+ created__year=year,
+ created__month=month,
+ status=0
+ )
context['date'] = datetime.datetime.now()
context['billed'] = qs.filter(payment_status=1)
context['billed_total'] = qs.filter(payment_status=1).aggregate(total_payment=Sum('payment'))