Skip to content

Commit

Permalink
Update awx/api/serializers.py
Browse files Browse the repository at this point in the history
Co-authored-by: Sviatoslav Sydorenko (Святослав Сидоренко) <wk.cvs.github@sydorenko.org.ua>
  • Loading branch information
djyasin and webknjaz authored Oct 22, 2024
1 parent ddced5d commit 2168ad3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion awx/api/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -2326,7 +2326,7 @@ class Meta:
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
if 'source' in self.fields:
self.fields['source'].choices = return_inventory_source_options() or {}
self.fields['source'].choices = return_inventory_source_options()

def get_related(self, obj):
res = super(InventorySourceOptionsSerializer, self).get_related(obj)
Expand Down

0 comments on commit 2168ad3

Please sign in to comment.