Skip to content

Commit

Permalink
Sort jobs by latest created by default
Browse files Browse the repository at this point in the history
  • Loading branch information
mihow committed Nov 7, 2023
1 parent 8a00f2a commit 72b02e2
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions ami/jobs/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -450,3 +450,10 @@ def default_config(cls) -> dict:
def default_progress(cls) -> JobProgress:
"""Return the progress of each stage of this job as a dictionary"""
return default_job_progress

class Meta:
ordering = ["-created_at"]
# permissions = [
# ("run_job", "Can run a job"),
# ("cancel_job", "Can cancel a job"),
# ]

0 comments on commit 72b02e2

Please sign in to comment.