is_partitioned should default to true when pk not set

This commit is contained in:
Jim Ladd 2021-03-25 15:13:23 -07:00
parent 14168297bd
commit 5a785798b0

View File

@ -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