add incentive plan id to rancher distribution info
This commit is contained in:
@@ -47,6 +47,7 @@ def quota_incentive_plans_info(quota: Quota, rancher: Rancher) -> typing.Any:
|
||||
).filter(rancher=rancher, livestock_type=plan.livestock_type)
|
||||
|
||||
incentive_plans_data = {
|
||||
'id': plan.incentive_plan.id,
|
||||
'name': plan.incentive_plan.name,
|
||||
'livestock_type': plan.livestock_type.name if plan.livestock_type else "",
|
||||
'livestock_type_en': plan.livestock_type.en_name if plan.livestock_type else "",
|
||||
|
||||
Reference in New Issue
Block a user