Merge pull request #1477 from umap-project/picto-admin

Allow to edit pictogram categories from admin list
This commit is contained in:
Yohan Boniface 2023-12-18 08:43:43 +01:00 committed by GitHub
commit 270181b2bd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -17,8 +17,17 @@ class MapAdmin(admin.GISModelAdmin):
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(DataLayer)
admin.site.register(Pictogram)
admin.site.register(Pictogram, PictogramAdmin)
admin.site.register(TileLayer, TileLayerAdmin)
admin.site.register(Licence)