Skip to content

Commit

Permalink
Merge pull request #193 from erickgnavar/improve-selecting-of-neighbo…
Browse files Browse the repository at this point in the history
…urs-in-admin

Add filter_horizontal to neighbours field in Country model
  • Loading branch information
blag authored May 11, 2018
2 parents c264558 + 6be2b69 commit 1a60b31
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 1a60b31

Please sign in to comment.