diff --git a/awx/api/serializers.py b/awx/api/serializers.py index 2d2e38a8f5..c5e8559486 100644 --- a/awx/api/serializers.py +++ b/awx/api/serializers.py @@ -285,7 +285,8 @@ class BaseSerializer(serializers.ModelSerializer): # because it results in additional queries. if fk == 'job' and isinstance(obj, UnifiedJob): continue - if fk == 'project' and isinstance(obj, InventorySource): + if fk == 'project' and (isinstance(obj, InventorySource) or + isinstance(obj, Project)): continue fkval = getattr(obj, fk, None)