remove redundant clause in act str serializer

This commit is contained in:
AlanCoding 2017-02-02 14:59:48 -05:00
parent ebb2b886f1
commit 8683da986d

View File

@ -3086,8 +3086,6 @@ class ActivityStreamSerializer(BaseSerializer):
summary_fields[get_type_for_model(unified_job_template)] = {'id': unified_job_template.id,
'name': unified_job_template.name}
thisItemDict = {}
if 'id' not in related_fields:
related_fields = related_fields + ('id',)
for field in related_fields:
fval = getattr(thisItem, field, None)
if fval is not None: