mirror of
https://github.com/ansible/awx.git
synced 2026-05-07 01:17:37 -02:30
is_partitioned should default to true when pk not set
This commit is contained in:
@@ -3754,6 +3754,8 @@ class JobEventDetail(RetrieveAPIView):
|
|||||||
|
|
||||||
@property
|
@property
|
||||||
def is_partitioned(self):
|
def is_partitioned(self):
|
||||||
|
if 'pk' not in self.kwargs:
|
||||||
|
return True
|
||||||
return int(self.kwargs['pk']) > unpartitioned_event_horizon(models.JobEvent)
|
return int(self.kwargs['pk']) > unpartitioned_event_horizon(models.JobEvent)
|
||||||
|
|
||||||
@property
|
@property
|
||||||
@@ -3777,6 +3779,8 @@ class JobEventChildrenList(NoTruncateMixin, SubListAPIView):
|
|||||||
|
|
||||||
@property
|
@property
|
||||||
def is_partitioned(self):
|
def is_partitioned(self):
|
||||||
|
if 'pk' not in self.kwargs:
|
||||||
|
return True
|
||||||
return int(self.kwargs['pk']) > unpartitioned_event_horizon(models.JobEvent)
|
return int(self.kwargs['pk']) > unpartitioned_event_horizon(models.JobEvent)
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
|||||||
Reference in New Issue
Block a user