telegram_bots/bots/admin.py
2021-03-15 21:59:34 +03:00

18 lines
564 B
Python

from django.contrib import admin
from .models import TelegramBot, BotUser
from .modules import EchoBotModuleConfig, ChannelHelperBotModuleConfig, OverlayBotModuleConfig, QueuedItem,\
CyberLinaBotModuleConfig
@admin.register(TelegramBot)
class TelegramBot(admin.ModelAdmin):
list_display = '__str__', 'active',
admin.site.register(EchoBotModuleConfig)
admin.site.register(OverlayBotModuleConfig)
admin.site.register(ChannelHelperBotModuleConfig)
admin.site.register(QueuedItem)
admin.site.register(BotUser)
admin.site.register(CyberLinaBotModuleConfig)