Allow to edit pictogram categories from admin list

This commit is contained in:
Yohan Boniface 2023-12-17 12:20:30 +01:00
parent 45f0fdc03f
commit 12ba5e61f8

View file

@ -17,8 +17,17 @@ class MapAdmin(admin.GISModelAdmin):
list_filter = ("share_status",) list_filter = ("share_status",)
class PictogramAdmin(admin.ModelAdmin):
list_display = (
"name",
"category",
)
list_editable = ("category",)
list_filter = ("category",)
admin.site.register(Map, MapAdmin) admin.site.register(Map, MapAdmin)
admin.site.register(DataLayer) admin.site.register(DataLayer)
admin.site.register(Pictogram) admin.site.register(Pictogram, PictogramAdmin)
admin.site.register(TileLayer, TileLayerAdmin) admin.site.register(TileLayer, TileLayerAdmin)
admin.site.register(Licence) admin.site.register(Licence)