From 4f5be9320a7374d373f25b2c9f4a899513444cfd Mon Sep 17 00:00:00 2001 From: bakatrouble Date: Tue, 5 May 2020 11:51:11 +0300 Subject: [PATCH] fix admin --- bots/admin.py | 5 +++-- bots/modules/__init__.py | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/bots/admin.py b/bots/admin.py index f0b8899..3626034 100644 --- a/bots/admin.py +++ b/bots/admin.py @@ -1,7 +1,7 @@ from django.contrib import admin from .models import TelegramBot from .modules import EchoBotModuleConfig, ChannelHelperBotModuleConfig, OverlayBotModuleConfig, QueuedItem,\ - CyberLinaBotModuleConfig + CyberLinaBotModuleConfig, ChannelHelperUser @admin.register(TelegramBot) @@ -10,7 +10,8 @@ class TelegramBot(admin.ModelAdmin): admin.site.register(EchoBotModuleConfig) -admin.site.register(ChannelHelperBotModuleConfig) admin.site.register(OverlayBotModuleConfig) +admin.site.register(ChannelHelperBotModuleConfig) admin.site.register(QueuedItem) +admin.site.register(ChannelHelperUser) admin.site.register(CyberLinaBotModuleConfig) diff --git a/bots/modules/__init__.py b/bots/modules/__init__.py index ac2a985..3988a00 100644 --- a/bots/modules/__init__.py +++ b/bots/modules/__init__.py @@ -1,5 +1,5 @@ from .overlay import OverlayBotModuleConfig -from .channel_helper import ChannelHelperBotModuleConfig, QueuedItem +from .channel_helper import ChannelHelperBotModuleConfig, QueuedItem, ChannelHelperUser from .echo import EchoBotModuleConfig from .cyberlina import CyberLinaBotModuleConfig from .ping import PingBotModuleConfig