Skip to content

Commit 1a60b31

Browse files
authored
Merge pull request #193 from erickgnavar/improve-selecting-of-neighbours-in-admin
Add filter_horizontal to neighbours field in Country model
2 parents c264558 + 6be2b69 commit 1a60b31

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cities/admin.py

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ class ContinentAdmin(CitiesAdmin):
1717
class CountryAdmin(CitiesAdmin):
1818
list_display = ['name', 'code', 'code3', 'tld', 'phone', 'continent', 'area', 'population']
1919
search_fields = ['name', 'code', 'code3', 'tld', 'phone']
20+
filter_horizontal = ['neighbours']
2021

2122

2223
class RegionAdmin(CitiesAdmin):

0 commit comments

Comments
 (0)