Skip to content

Commit

Permalink
Add filter_horizontal to neighbours field in Country model
Browse files Browse the repository at this point in the history
Improve selecting the neighbours in admin
  • Loading branch information
erickgnavar committed Apr 16, 2018
1 parent bc46168 commit 6be2b69
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cities/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 6be2b69

Please sign in to comment.