add incentive plan id to rancher distribution info

This commit is contained in:
2025-09-24 15:00:10 +03:30
parent 69daf8d5ef
commit 10ff4de7ed
2 changed files with 34 additions and 7 deletions

View File

@@ -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 "",