From b2d8a12f1a680ceaadd0116fc99c71476fa0f58d Mon Sep 17 00:00:00 2001 From: Fabio Ambauen Date: Mon, 6 Nov 2023 11:48:24 +0100 Subject: [PATCH 1/2] fix: add default ordering to Snippet --- .../migrations/0003_alter_snippet_options.py | 16 ++++++++++++++++ api/mysagw/snippets/models.py | 3 +++ 2 files changed, 19 insertions(+) create mode 100644 api/mysagw/snippets/migrations/0003_alter_snippet_options.py diff --git a/api/mysagw/snippets/migrations/0003_alter_snippet_options.py b/api/mysagw/snippets/migrations/0003_alter_snippet_options.py new file mode 100644 index 000000000..faee29c3a --- /dev/null +++ b/api/mysagw/snippets/migrations/0003_alter_snippet_options.py @@ -0,0 +1,16 @@ +# Generated by Django 3.2.23 on 2023-11-06 08:39 + +from django.db import migrations + + +class Migration(migrations.Migration): + dependencies = [ + ("snippets", "0002_simple_history_update"), + ] + + operations = [ + migrations.AlterModelOptions( + name="snippet", + options={"ordering": ("title",)}, + ), + ] diff --git a/api/mysagw/snippets/models.py b/api/mysagw/snippets/models.py index 1cc96126f..787118435 100644 --- a/api/mysagw/snippets/models.py +++ b/api/mysagw/snippets/models.py @@ -8,3 +8,6 @@ class Snippet(UUIDModel, HistoricalModel): title = models.CharField(max_length=255) body = LocalizedTextField(blank=False, null=False, required=False) archived = models.BooleanField(default=False) + + class Meta: + ordering = ("title",) From 6ba640e2d094533b8dc3f9de72c9c1202880438f Mon Sep 17 00:00:00 2001 From: Fabio Ambauen Date: Mon, 6 Nov 2023 11:49:03 +0100 Subject: [PATCH 2/2] chore: clear next_deployment.md --- next_deployment.md | 9 --------- 1 file changed, 9 deletions(-) diff --git a/next_deployment.md b/next_deployment.md index 7d4b9f413..6e8232d1f 100644 --- a/next_deployment.md +++ b/next_deployment.md @@ -1,10 +1 @@ # Manual steps for next deployment - -## MinIO - -The intermediate containers for the storage backend migration can be removed: - - - `minio-legacy` - - `minio-migrate` - -The volume `minio-data` can be removed.