Allow to filter maps by share_status in admin

fix #682
This commit is contained in:
Yohan Boniface 2019-04-09 10:20:30 +02:00
parent 12ffd0f0f1
commit 7d9ae731c0

View file

@ -10,6 +10,7 @@ class TileLayerAdmin(admin.ModelAdmin):
class MapAdmin(admin.OSMGeoAdmin): class MapAdmin(admin.OSMGeoAdmin):
search_fields = ("name",) search_fields = ("name",)
autocomplete_fields = ("owner", "editors") autocomplete_fields = ("owner", "editors")
list_filter = ("share_status",)
admin.site.register(Map, MapAdmin) admin.site.register(Map, MapAdmin)