Trunk: Merged the Devel-branch (branches/griatch) into /trunk. This constitutes a major refactoring of Evennia. Development will now continue in trunk. See the wiki and the past posts to the mailing list for info. /Griatch
This commit is contained in:
parent
df29defbcd
commit
f83c2bddf8
222 changed files with 22304 additions and 14371 deletions
|
|
@ -1,15 +1,27 @@
|
|||
from src.config.models import CommandAlias, ConfigValue, ConnectScreen
|
||||
#
|
||||
# This sets up how models are displayed
|
||||
# in the web admin interface.
|
||||
#
|
||||
|
||||
from src.config.models import ConfigValue, ConnectScreen
|
||||
from django.contrib import admin
|
||||
|
||||
class CommandAliasAdmin(admin.ModelAdmin):
|
||||
list_display = ('user_input', 'equiv_command')
|
||||
admin.site.register(CommandAlias, CommandAliasAdmin)
|
||||
|
||||
class ConfigValueAdmin(admin.ModelAdmin):
|
||||
list_display = ('conf_key', 'conf_value')
|
||||
list_display = ('id', 'db_key')
|
||||
list_display_links = ("id", 'db_key')
|
||||
ordering = ['id', 'db_key']
|
||||
search_fields = ['db_key']
|
||||
save_as = True
|
||||
save_on_top = True
|
||||
list_select_related = True
|
||||
admin.site.register(ConfigValue, ConfigValueAdmin)
|
||||
|
||||
class ConnectScreenAdmin(admin.ModelAdmin):
|
||||
list_display = ('id', 'name', 'is_active')
|
||||
list_display_links = ('id', 'name')
|
||||
admin.site.register(ConnectScreen, ConnectScreenAdmin)
|
||||
list_display = ('id', 'db_key', 'db_text', 'db_is_active')
|
||||
list_display_links = ('id', 'db_key')
|
||||
ordering = ['id', 'db_key']
|
||||
search_fields = ['^db_key']
|
||||
save_as = True
|
||||
save_on_top = True
|
||||
list_select_related = True
|
||||
admin.site.register(ConnectScreen, ConnectScreenAdmin)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue