Add latlong to the City admin display
This commit is contained in:
parent
ad27342d97
commit
da82627c2e
1 changed files with 1 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue