Add migration for Certification Version ordering
This commit is contained in:
parent
d247fc1616
commit
1eb3952ea1
@ -0,0 +1,33 @@
|
|||||||
|
# Generated by Django 4.1.7 on 2023-04-01 03:53
|
||||||
|
|
||||||
|
from django.db import migrations
|
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration):
|
||||||
|
dependencies = [
|
||||||
|
("paperwork", "0010_switch_certificationversion_to_semver"),
|
||||||
|
]
|
||||||
|
|
||||||
|
operations = [
|
||||||
|
migrations.AlterModelOptions(
|
||||||
|
name="certificationversion",
|
||||||
|
options={
|
||||||
|
"base_manager_name": "objects",
|
||||||
|
"get_latest_by": (
|
||||||
|
"major",
|
||||||
|
"minor",
|
||||||
|
"patch",
|
||||||
|
"prerelease",
|
||||||
|
"approval_date",
|
||||||
|
),
|
||||||
|
"ordering": (
|
||||||
|
"definition",
|
||||||
|
"major",
|
||||||
|
"minor",
|
||||||
|
"patch",
|
||||||
|
"prerelease",
|
||||||
|
"approval_date",
|
||||||
|
),
|
||||||
|
},
|
||||||
|
),
|
||||||
|
]
|
Loading…
Reference in New Issue
Block a user