Merge pull request #416 from ryanpetrello/stdout_defer

Add 3.1.5 result_stdout_text optimizations into 3.2 so we don't regress
This commit is contained in:
Ryan Petrello
2017-09-15 14:24:47 -04:00
committed by GitHub
3 changed files with 20 additions and 0 deletions

View File

@@ -2668,6 +2668,12 @@ class InventoryUpdateList(ListAPIView):
model = InventoryUpdate
serializer_class = InventoryUpdateListSerializer
def get_queryset(self):
qs = super(InventoryUpdateList, self).get_queryset()
# TODO: remove this defer in 3.3 when we implement https://github.com/ansible/ansible-tower/issues/5436
qs = qs.defer('result_stdout_text')
return qs
class InventoryUpdateDetail(UnifiedJobDeletionMixin, RetrieveDestroyAPIView):