mirror of
https://github.com/ansible/awx.git
synced 2026-01-13 11:00:03 -03:30
special case filter to show inventory id for group
This commit is contained in:
parent
f5fa53d89a
commit
32a9c812e3
@ -2674,6 +2674,8 @@ class ActivityStreamSerializer(BaseSerializer):
|
||||
fval = getattr(thisItem, field, None)
|
||||
if fval is not None:
|
||||
thisItemDict[field] = fval
|
||||
if fk == 'group':
|
||||
thisItemDict['inventory_id'] = getattr(thisItem, 'inventory_id', None)
|
||||
summary_fields[fk].append(thisItemDict)
|
||||
except ObjectDoesNotExist:
|
||||
pass
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user