Order Certification Versions by definition first
This commit is contained in:
parent
c8560ff3bc
commit
d247fc1616
@ -138,7 +138,14 @@ class CertificationVersion(models.Model):
|
|||||||
name="unique_certification_version",
|
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")
|
get_latest_by = ("major", "minor", "patch", "prerelease", "approval_date")
|
||||||
base_manager_name = "objects"
|
base_manager_name = "objects"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user