mirror of
https://github.com/ansible/awx.git
synced 2026-04-10 20:49:24 -02:30
Enable ?page_size=1 in URL to fetch correct objects on schedules endpoint
This commit is contained in:
@@ -63,7 +63,7 @@ class ScheduleManager(ScheduleFilterMethods, models.Manager):
|
||||
class Schedule(PrimordialModel, LaunchTimeConfig):
|
||||
class Meta:
|
||||
app_label = 'main'
|
||||
ordering = ['-next_run']
|
||||
ordering = [models.F('next_run').desc(nulls_last=True), 'id']
|
||||
unique_together = ('unified_job_template', 'name')
|
||||
|
||||
objects = ScheduleManager()
|
||||
|
||||
Reference in New Issue
Block a user