Allow to search maps in the admin

This commit is contained in:
Yohan Boniface 2019-04-07 11:43:16 +02:00
parent bbd239e07d
commit 560ace68f8

View file

@ -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)