mirror of
https://github.com/evennia/evennia.git
synced 2026-04-07 00:45:22 +02:00
9 lines
348 B
Python
9 lines
348 B
Python
|
|
from django.contrib import admin
|
||
|
|
from src.helpsys.models import HelpEntry
|
||
|
|
|
||
|
|
class HelpEntryAdmin(admin.ModelAdmin):
|
||
|
|
list_display = ('id', 'topicname', 'staff_only')
|
||
|
|
list_display_links = ('id', 'topicname')
|
||
|
|
list_filter = ('staff_only',)
|
||
|
|
search_fields = ['topicname', 'entrytext']
|
||
|
|
admin.site.register(HelpEntry, HelpEntryAdmin)
|