import - quota_id in rancher dashboard
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user