From 6be2b692a3a3f80ba3db3623fde45b2b3f5f8811 Mon Sep 17 00:00:00 2001 From: Erick Navarro Date: Mon, 16 Apr 2018 10:08:55 -0700 Subject: [PATCH] Add filter_horizontal to neighbours field in Country model Improve selecting the neighbours in admin --- cities/admin.py | 1 + 1 file changed, 1 insertion(+) diff --git a/cities/admin.py b/cities/admin.py index da360381..bf075b5f 100644 --- a/cities/admin.py +++ b/cities/admin.py @@ -17,6 +17,7 @@ class ContinentAdmin(CitiesAdmin): class CountryAdmin(CitiesAdmin): list_display = ['name', 'code', 'code3', 'tld', 'phone', 'continent', 'area', 'population'] search_fields = ['name', 'code', 'code3', 'tld', 'phone'] + filter_horizontal = ['neighbours'] class RegionAdmin(CitiesAdmin):