mirror of
https://github.com/evennia/evennia.git
synced 2026-03-19 22:36:31 +01:00
26 lines
725 B
Python
Executable file
26 lines
725 B
Python
Executable file
from django.db import models
|
|
|
|
class CommandAlias(models.Model):
|
|
"""
|
|
Command aliases. If the player enters the value equal to user_input, the
|
|
command denoted by equiv_command is used instead.
|
|
"""
|
|
user_input = models.CharField(maxlength=50)
|
|
equiv_command = models.CharField(maxlength=50)
|
|
|
|
class Admin:
|
|
list_display = ('user_input', 'equiv_command',)
|
|
|
|
class Meta:
|
|
verbose_name_plural = "Command aliases"
|
|
ordering = ['user_input']
|
|
|
|
class ConfigValue(models.Model):
|
|
"""
|
|
Experimental new config model.
|
|
"""
|
|
conf_key = models.CharField(maxlength=100)
|
|
conf_value = models.CharField(maxlength=255 )
|
|
|
|
class Admin:
|
|
list_display = ('conf_key', 'conf_value',)
|