Added @setcmdalias for creating aliases for commands (l -> look etc). Also moved the hard-coded defaults to settings.py instead.
This commit is contained in:
parent
a286841030
commit
0c29d359f6
6 changed files with 119 additions and 15 deletions
|
|
@ -16,7 +16,7 @@ class CommandAlias(models.Model):
|
|||
class Meta:
|
||||
verbose_name_plural = "Command aliases"
|
||||
ordering = ['user_input']
|
||||
|
||||
|
||||
class ConfigValue(models.Model):
|
||||
"""
|
||||
Experimental new config model.
|
||||
|
|
@ -38,4 +38,4 @@ class ConnectScreen(models.Model):
|
|||
text = models.TextField(help_text="The text for the connect screen. Color codes and substitutions are evaluated.")
|
||||
is_active = models.BooleanField(default=1, help_text="Only active connect screens are placed in the rotation")
|
||||
|
||||
objects = ConnectScreenManager()
|
||||
objects = ConnectScreenManager()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue