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:
Griatch 2009-10-16 21:04:07 +00:00
parent a286841030
commit 0c29d359f6
6 changed files with 119 additions and 15 deletions

View file

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