Allow to search maps in the admin
This commit is contained in:
parent
bbd239e07d
commit
560ace68f8
1 changed files with 6 additions and 1 deletions
|
@ -6,7 +6,12 @@ class TileLayerAdmin(admin.ModelAdmin):
|
|||
list_display = ('name', 'rank', )
|
||||
list_editable = ('rank', )
|
||||
|
||||
admin.site.register(Map, admin.OSMGeoAdmin)
|
||||
|
||||
class MapAdmin(admin.OSMGeoAdmin):
|
||||
search_fields = ("name",)
|
||||
|
||||
|
||||
admin.site.register(Map, MapAdmin)
|
||||
admin.site.register(DataLayer)
|
||||
admin.site.register(Pictogram)
|
||||
admin.site.register(TileLayer, TileLayerAdmin)
|
||||
|
|
Loading…
Reference in a new issue