telegram_bots/bots/admin.py

15 lines
449 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
from .modules import EchoBotModuleConfig, ChannelHelperBotModuleConfig, OverlayBotModuleConfig, QueuedItem
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(ChannelHelperBotModuleConfig)
admin.site.register(OverlayBotModuleConfig)
admin.site.register(QueuedItem)