mirror of
https://github.com/evennia/evennia.git
synced 2026-03-21 23:36:30 +01:00
Applying some polish to the admin interface.
This commit is contained in:
parent
c3ce3451b3
commit
c5975f522f
3 changed files with 15 additions and 1 deletions
|
|
@ -10,6 +10,10 @@ class CommandAlias(models.Model):
|
|||
|
||||
class Admin:
|
||||
list_display = ('user_input', 'equiv_command',)
|
||||
|
||||
class Meta:
|
||||
verbose_name_plural = "Command aliases"
|
||||
ordering = ['user_input']
|
||||
|
||||
class ConfigValue(models.Model):
|
||||
"""
|
||||
|
|
|
|||
|
|
@ -11,7 +11,13 @@ class HelpEntry(models.Model):
|
|||
staff_only = models.BooleanField(default=0)
|
||||
|
||||
class Admin:
|
||||
list_display = ('topicname', 'staff_only',)
|
||||
list_display = ('topicname', 'staff_only')
|
||||
list_filter = ('staff_only',)
|
||||
search_fields = ['entrytext']
|
||||
|
||||
class Meta:
|
||||
verbose_name_plural = "Help entries"
|
||||
ordering = ['topicname']
|
||||
|
||||
def __str__(self):
|
||||
return "%3d. %s" % (self.id, self.topicname)
|
||||
|
|
|
|||
|
|
@ -22,6 +22,7 @@ class Attribute(models.Model):
|
|||
|
||||
class Admin:
|
||||
list_display = ('object', 'name', 'value',)
|
||||
search_fields = ['name']
|
||||
|
||||
class Object(models.Model):
|
||||
"""
|
||||
|
|
@ -55,9 +56,12 @@ class Object(models.Model):
|
|||
permissions = (
|
||||
("can_examine", "Can examine objects"),
|
||||
)
|
||||
ordering = ['-date_created', 'id']
|
||||
|
||||
class Admin:
|
||||
list_display = ('id', 'name', 'type', 'date_created')
|
||||
list_filter = ('type',)
|
||||
search_fields = ['name']
|
||||
|
||||
"""
|
||||
BEGIN COMMON METHODS
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue