Order Certification Versions by definition first

This commit is contained in:
Adam Goldsmith 2023-03-30 12:27:51 -04:00
parent c8560ff3bc
commit d247fc1616

View File

@ -138,7 +138,14 @@ class CertificationVersion(models.Model):
name="unique_certification_version",
)
]
ordering = ("major", "minor", "patch", "prerelease", "approval_date")
ordering = (
"definition",
"major",
"minor",
"patch",
"prerelease",
"approval_date",
)
get_latest_by = ("major", "minor", "patch", "prerelease", "approval_date")
base_manager_name = "objects"