umap/umap/admin.py
Yohan Boniface e55d03bd5e Django 2.0
And update other deps
2018-05-19 10:05:18 +02:00

13 lines
397 B
Python

from django.contrib.gis import admin
from .models import Map, DataLayer, Pictogram, TileLayer, Licence
class TileLayerAdmin(admin.ModelAdmin):
list_display = ('name', 'rank', )
list_editable = ('rank', )
admin.site.register(Map, admin.OSMGeoAdmin)
admin.site.register(DataLayer)
admin.site.register(Pictogram)
admin.site.register(TileLayer, TileLayerAdmin)
admin.site.register(Licence)