telegram_bots/bots/admin.py

18 lines
584 B
Python
Raw Normal View History

2019-11-12 17:13:56 +00:00
from django.contrib import admin
2019-11-24 16:29:52 +00:00
from .models import TelegramBot
2019-11-27 20:11:32 +00:00
from .modules import EchoBotModuleConfig, ChannelHelperBotModuleConfig, OverlayBotModuleConfig, QueuedItem,\
2020-05-05 08:51:11 +00:00
CyberLinaBotModuleConfig, ChannelHelperUser
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)
2020-05-05 08:51:11 +00:00
admin.site.register(ChannelHelperUser)
2019-11-27 20:11:32 +00:00
admin.site.register(CyberLinaBotModuleConfig)