mirror of
https://github.com/ansible/awx.git
synced 2026-03-03 09:48:51 -03:30
is_partitioned should default to true when pk not set
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user