diff --git a/paperwork/models.py b/paperwork/models.py index 6556590..0c337cb 100644 --- a/paperwork/models.py +++ b/paperwork/models.py @@ -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"