From 1eb3952ea1c9c9118f1a2b3b984d4d1bb033ef7d Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Fri, 31 Mar 2023 23:53:47 -0400 Subject: [PATCH] Add migration for Certification Version ordering --- ...0011_alter_certificationversion_options.py | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 paperwork/migrations/0011_alter_certificationversion_options.py diff --git a/paperwork/migrations/0011_alter_certificationversion_options.py b/paperwork/migrations/0011_alter_certificationversion_options.py new file mode 100644 index 0000000..c7202bd --- /dev/null +++ b/paperwork/migrations/0011_alter_certificationversion_options.py @@ -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", + ), + }, + ), + ]