From d0531bff53044870a365064646e534595082832d Mon Sep 17 00:00:00 2001 From: "Brian S. Stephan" Date: Tue, 14 May 2024 10:46:01 -0500 Subject: [PATCH] have character status display strings lowercase for use mid-sentence Signed-off-by: Brian S. Stephan --- .../migrations/0006_alter_character_status.py | 18 ++++++++++++++++++ idlerpg/models.py | 6 +++--- 2 files changed, 21 insertions(+), 3 deletions(-) create mode 100644 idlerpg/migrations/0006_alter_character_status.py diff --git a/idlerpg/migrations/0006_alter_character_status.py b/idlerpg/migrations/0006_alter_character_status.py new file mode 100644 index 0000000..1a61d5c --- /dev/null +++ b/idlerpg/migrations/0006_alter_character_status.py @@ -0,0 +1,18 @@ +# Generated by Django 5.0.5 on 2024-05-14 15:55 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('idlerpg', '0005_alter_character_status'), + ] + + operations = [ + migrations.AlterField( + model_name='character', + name='status', + field=models.CharField(choices=[('DISABLED', 'disabled'), ('LOGGEDIN', 'logged in'), ('OFFLINE', 'offline')], default='OFFLINE', max_length=8), + ), + ] diff --git a/idlerpg/models.py b/idlerpg/models.py index 59ef682..c2472d6 100644 --- a/idlerpg/models.py +++ b/idlerpg/models.py @@ -80,9 +80,9 @@ class Character(models.Model): CHARACTER_STATUS_LOGGED_IN = 'LOGGEDIN' CHARACTER_STATUS_OFFLINE = 'OFFLINE' CHARACTER_STATUSES = { - CHARACTER_STATUS_DISABLED: "Disabled", - CHARACTER_STATUS_LOGGED_IN: "Logged in", - CHARACTER_STATUS_OFFLINE: "Offline", + CHARACTER_STATUS_DISABLED: "disabled", + CHARACTER_STATUS_LOGGED_IN: "logged in", + CHARACTER_STATUS_OFFLINE: "offline", } NICK_CHANGE_P = 30