mirror of
https://github.com/ansible/awx.git
synced 2026-01-15 20:00:43 -03:30
is_partitioned should default to true when pk not set
This commit is contained in:
parent
14168297bd
commit
5a785798b0
@ -3754,6 +3754,8 @@ class JobEventDetail(RetrieveAPIView):
|
||||
|
||||
@property
|
||||
def is_partitioned(self):
|
||||
if 'pk' not in self.kwargs:
|
||||
return True
|
||||
return int(self.kwargs['pk']) > unpartitioned_event_horizon(models.JobEvent)
|
||||
|
||||
@property
|
||||
@ -3777,6 +3779,8 @@ class JobEventChildrenList(NoTruncateMixin, SubListAPIView):
|
||||
|
||||
@property
|
||||
def is_partitioned(self):
|
||||
if 'pk' not in self.kwargs:
|
||||
return True
|
||||
return int(self.kwargs['pk']) > unpartitioned_event_horizon(models.JobEvent)
|
||||
|
||||
@property
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user