mirror of
https://github.com/ansible/awx.git
synced 2026-06-30 19:08:02 -02:30
Add the no_truncate parameter to the job and adhoc event sublist views
which are the ones that the CLI actually uses.
This commit is contained in:
committed by
Ryan Petrello
parent
a23754897e
commit
aff31ac02f
@@ -270,3 +270,11 @@ class ControlledByScmMixin(object):
|
||||
obj = super(ControlledByScmMixin, self).get_parent_object()
|
||||
self._reset_inv_src_rev(obj)
|
||||
return obj
|
||||
|
||||
|
||||
class NoTruncateMixin(object):
|
||||
def get_serializer_context(self):
|
||||
context = super().get_serializer_context()
|
||||
if self.request.query_params.get('no_truncate'):
|
||||
context.update(no_truncate=True)
|
||||
return context
|
||||
|
||||
Reference in New Issue
Block a user