mirror of
https://github.com/ansible/awx.git
synced 2026-03-09 13:39:27 -02:30
more result_stdout_text defer optimization for inventory updates
see: https://github.com/ansible/ansible-tower/issues/7568
This commit is contained in:
@@ -2670,6 +2670,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):
|
||||
|
||||
|
||||
Reference in New Issue
Block a user