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