telegram_bots/bots/admin.py

18 lines
564 B
Python
Raw Permalink Normal View History

2019-11-12 17:13:56 +00:00
from django.contrib import admin
2021-03-15 18:59:34 +00:00
from .models import TelegramBot, BotUser
2019-11-27 20:11:32 +00:00
from .modules import EchoBotModuleConfig, ChannelHelperBotModuleConfig, OverlayBotModuleConfig, QueuedItem,\
2021-03-15 18:59:34 +00:00
CyberLinaBotModuleConfig
2019-11-12 17:13:56 +00:00
2019-11-24 16:29:52 +00:00
@admin.register(TelegramBot)
class TelegramBot(admin.ModelAdmin):
list_display = '__str__', 'active',
admin.site.register(EchoBotModuleConfig)
admin.site.register(OverlayBotModuleConfig)
2020-05-05 08:51:11 +00:00
admin.site.register(ChannelHelperBotModuleConfig)
2019-11-24 16:29:52 +00:00
admin.site.register(QueuedItem)
2021-03-15 18:59:34 +00:00
admin.site.register(BotUser)
2019-11-27 20:11:32 +00:00
admin.site.register(CyberLinaBotModuleConfig)