From bb3973ffb714c932e9ec6dd6a751228dc71fe1d3 Mon Sep 17 00:00:00 2001 From: lxf Date: Sat, 14 May 2022 16:38:07 -0400 Subject: initial commit --- app/normalize/admin.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 app/normalize/admin.py (limited to 'app/normalize/admin.py') diff --git a/app/normalize/admin.py b/app/normalize/admin.py new file mode 100644 index 0000000..cf67658 --- /dev/null +++ b/app/normalize/admin.py @@ -0,0 +1,13 @@ +from django.contrib import admin + +from utils.widgets import AdminImageWidget, LGEntryForm + +from .models import RelatedPost + +@admin.register(RelatedPost) +class RelatedPostAdmin(admin.ModelAdmin): + list_display = ('title', 'slug', 'pub_date', 'model_name') + list_filter = ['model_name'] + + class Media: + js = ('next-prev-links.js',) -- cgit v1.2.3-70-g09d2