Add latlong to the City admin display

This commit is contained in:
Michael Hall 2018-07-15 13:30:44 -04:00
parent ad27342d97
commit da82627c2e

View file

@ -41,6 +41,7 @@ admin.site.register(SPR, SPRAdmin)
class CityAdmin(admin.ModelAdmin):
raw_id_fields = ('spr',)
list_display = ('name', 'spr', 'latitude', 'longitude')
list_filter =('spr__country',)
search_fields = ('name', 'spr__name')
admin.site.register(City, CityAdmin)