have character status display strings lowercase for use mid-sentence

Signed-off-by: Brian S. Stephan <bss@incorporeal.org>
This commit is contained in:
Brian S. Stephan 2024-05-14 10:46:01 -05:00
parent d322429157
commit d0531bff53
Signed by: bss
GPG Key ID: 3DE06D3180895FCB
2 changed files with 21 additions and 3 deletions

View File

@ -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),
),
]

View File

@ -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