push limit to inventory sources

move limit field from InventorySourceSerializer to InventorySourceOptionsSerializer (#13464)

InventorySourceOptionsSerializer is the parent for both InventorySourceSerializer and InventoryUpdateSerializer

The limit option need to be exposed to both inventory_source and inventory_update

Co-Authored-By: Hao Liu <44379968+TheRealHaoLiu@users.noreply.github.com>
This commit is contained in:
Gabe Muniz
2023-01-19 12:40:14 -05:00
committed by Rick Elrod
parent f59ced57bc
commit e3d39a2728
4 changed files with 22 additions and 1 deletions

View File

@@ -2144,6 +2144,7 @@ class InventorySourceOptionsSerializer(BaseSerializer):
'custom_virtualenv',
'timeout',
'verbosity',
'limit',
)
read_only_fields = ('*', 'custom_virtualenv')