fix - quota dashboard by product
This commit is contained in:
@@ -111,6 +111,12 @@ class QuotaDashboardService:
|
|||||||
|
|
||||||
stat_by_prod = []
|
stat_by_prod = []
|
||||||
for prod_name, prod_id in products.items():
|
for prod_name, prod_id in products.items():
|
||||||
|
if organization.type.key == 'ADM':
|
||||||
|
org_quota_stat = OrganizationQuotaStats.objects.filter(
|
||||||
|
quota__product_id=prod_id,
|
||||||
|
stat_type='quota',
|
||||||
|
)
|
||||||
|
else:
|
||||||
org_quota_stat = OrganizationQuotaStats.objects.filter(
|
org_quota_stat = OrganizationQuotaStats.objects.filter(
|
||||||
organization=organization,
|
organization=organization,
|
||||||
quota__product_id=prod_id
|
quota__product_id=prod_id
|
||||||
|
|||||||
Reference in New Issue
Block a user