import - quota_id in rancher dashboard

This commit is contained in:
2025-12-16 15:02:05 +03:30
parent 7f7058e70e
commit d6a30705b5
2 changed files with 1 additions and 2 deletions

View File

@@ -117,7 +117,7 @@ class RancherDashboardService:
rancher_quota_data.update({
'product': stat.quota.product.name,
'product_id': stat.quota.product.id,
'quota_id': stat.quota.id,
'quota_id': stat.quota.quota_id,
})
rancher_data_by_quota_usage.append(rancher_quota_data)

View File

@@ -455,7 +455,6 @@ class IncentivePlanViewSet(SoftDeleteMixin, viewsets.ModelViewSet, DynamicSearch
base_query['group'] = group
today = datetime.now().date()
user_relations = product_models.UserRelations.objects.filter(user=request.user).first()
incentive_plans = self.queryset.filter(
Q(is_time_unlimited=False) |
Q(start_date_limit__lte=today, end_date_limit__gte=today),