From 411bef5272e278480cdf7b0211c8ea92dea2df64 Mon Sep 17 00:00:00 2001 From: Dmitriy Kuzmenko Date: Tue, 29 Oct 2019 10:30:08 +0300 Subject: [PATCH] change admin for news --- apps/news/admin.py | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/news/admin.py b/apps/news/admin.py index 5c1cbba7..91fb284c 100644 --- a/apps/news/admin.py +++ b/apps/news/admin.py @@ -26,6 +26,7 @@ send_email_action.short_description = "Send the selected news by email" @admin.register(models.News) class NewsAdmin(admin.ModelAdmin): """News admin.""" + raw_id_fields = ('address',) actions = [send_email_action]