From 6ad149c399104c9efd69a21ae9bcfdcc323b9634 Mon Sep 17 00:00:00 2001 From: luxagraf Date: Sat, 9 Mar 2024 08:28:54 -0600 Subject: norm: added search to admin --- app/normalize/admin.py | 1 + 1 file changed, 1 insertion(+) diff --git a/app/normalize/admin.py b/app/normalize/admin.py index 3f8984a..9edbab4 100644 --- a/app/normalize/admin.py +++ b/app/normalize/admin.py @@ -8,6 +8,7 @@ from .models import RelatedPost class RelatedPostAdmin(admin.ModelAdmin): list_display = ('title', 'slug', 'pub_date', 'model_name', 'post_type') list_filter = ['model_name'] + search_fields = ['title', 'slug'] class Media: js = ('next-prev-links.js',) -- cgit v1.2.3-70-g09d2