Allow to edit pictogram categories from admin list
This commit is contained in:
parent
45f0fdc03f
commit
12ba5e61f8
1 changed files with 10 additions and 1 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue