From 199cbb487a0630087063776f02f616f590eb8842 Mon Sep 17 00:00:00 2001 From: bakatrouble Date: Sat, 26 Oct 2019 22:39:58 +0300 Subject: [PATCH] update admin --- feeds/admin.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/feeds/admin.py b/feeds/admin.py index cd9e061..5c9e2d8 100644 --- a/feeds/admin.py +++ b/feeds/admin.py @@ -4,7 +4,11 @@ from .models import Feed from feeds.modules import EchoFeedModuleConfig, DankMemesFeedModuleConfig, ShittyWatercolourFeedModuleConfig,\ VKFeedModuleConfig, VKMusicFeedModuleConfig, WPComicFeedModuleConfig -admin.site.register(Feed) +@admin.register(Feed) +class FeedAdmin(admin.ModelAdmin): + list_display = '__str__', 'lock', + + admin.site.register(EchoFeedModuleConfig) admin.site.register(DankMemesFeedModuleConfig) admin.site.register(ShittyWatercolourFeedModuleConfig)