15 lines
449 B
Python
15 lines
449 B
Python
from django.contrib import admin
|
|
from .models import TelegramBot
|
|
from .modules import EchoBotModuleConfig, ChannelHelperBotModuleConfig, OverlayBotModuleConfig, QueuedItem
|
|
|
|
|
|
@admin.register(TelegramBot)
|
|
class TelegramBot(admin.ModelAdmin):
|
|
list_display = '__str__', 'active',
|
|
|
|
|
|
admin.site.register(EchoBotModuleConfig)
|
|
admin.site.register(ChannelHelperBotModuleConfig)
|
|
admin.site.register(OverlayBotModuleConfig)
|
|
admin.site.register(QueuedItem)
|