From 5dde86c3d6908b068826d04d2ce748b16f0c1872 Mon Sep 17 00:00:00 2001 From: Andreas Hubel <andi@saerdnaer.de> Date: Sat, 21 Dec 2024 01:52:34 +0100 Subject: [PATCH] chore(room-model): change official_room_order default to 1000 --- .../0166_alter_room_official_room_order.py | 21 +++++++++++++++++++ src/core/models/rooms.py | 2 +- 2 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 src/core/migrations/0166_alter_room_official_room_order.py diff --git a/src/core/migrations/0166_alter_room_official_room_order.py b/src/core/migrations/0166_alter_room_official_room_order.py new file mode 100644 index 000000000..a374050b6 --- /dev/null +++ b/src/core/migrations/0166_alter_room_official_room_order.py @@ -0,0 +1,21 @@ +# Generated by Django 5.1.3 on 2024-12-21 01:03 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + dependencies = [ + ("core", "0165_alter_eventparticipant_options_and_more"), + ] + + operations = [ + migrations.AlterField( + model_name="room", + name="official_room_order", + field=models.IntegerField( + default=1000, + help_text="Room__official_room_order__help", + verbose_name="Room__official_room_order", + ), + ), + ] diff --git a/src/core/models/rooms.py b/src/core/models/rooms.py index d33ff8ce7..21e0c1ee2 100644 --- a/src/core/models/rooms.py +++ b/src/core/models/rooms.py @@ -149,7 +149,7 @@ class Room(BackendMixin, models.Model): is_public_fahrplan = models.BooleanField(default=False, help_text=_('Room__is_public_fahrplan__help'), verbose_name=_('Room__is_public_fahrplan')) is_official = models.BooleanField(default=False, help_text=_('Room__is_official__help'), verbose_name=_('Room__is_official')) - official_room_order = models.IntegerField(default=0, help_text=_('Room__official_room_order__help'), verbose_name=_('Room__official_room_order')) + official_room_order = models.IntegerField(default=1000, help_text=_('Room__official_room_order__help'), verbose_name=_('Room__official_room_order')) room_type = models.CharField(max_length=20, choices=RoomType.choices, help_text=_('Room__type__help'), verbose_name=_('Room__type')) """Style of the room.""" -- GitLab