mirror of
https://github.com/ansible/awx.git
synced 2026-04-05 01:59:25 -02:30
remove redundant clause in act str serializer
This commit is contained in:
@@ -3086,8 +3086,6 @@ class ActivityStreamSerializer(BaseSerializer):
|
|||||||
summary_fields[get_type_for_model(unified_job_template)] = {'id': unified_job_template.id,
|
summary_fields[get_type_for_model(unified_job_template)] = {'id': unified_job_template.id,
|
||||||
'name': unified_job_template.name}
|
'name': unified_job_template.name}
|
||||||
thisItemDict = {}
|
thisItemDict = {}
|
||||||
if 'id' not in related_fields:
|
|
||||||
related_fields = related_fields + ('id',)
|
|
||||||
for field in related_fields:
|
for field in related_fields:
|
||||||
fval = getattr(thisItem, field, None)
|
fval = getattr(thisItem, field, None)
|
||||||
if fval is not None:
|
if fval is not None:
|
||||||
|
|||||||
Reference in New Issue
Block a user