telegram_bots/feeds/admin.py
2019-10-26 22:39:58 +03:00

18 lines
615 B
Python

from django.contrib import admin
from .models import Feed
from feeds.modules import EchoFeedModuleConfig, DankMemesFeedModuleConfig, ShittyWatercolourFeedModuleConfig,\
VKFeedModuleConfig, VKMusicFeedModuleConfig, WPComicFeedModuleConfig
@admin.register(Feed)
class FeedAdmin(admin.ModelAdmin):
list_display = '__str__', 'lock',
admin.site.register(EchoFeedModuleConfig)
admin.site.register(DankMemesFeedModuleConfig)
admin.site.register(ShittyWatercolourFeedModuleConfig)
admin.site.register(VKFeedModuleConfig)
admin.site.register(VKMusicFeedModuleConfig)
admin.site.register(WPComicFeedModuleConfig)