2018-05-18 14:40:38 -05:00
|
|
|
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', )
|
|
|
|
|
2019-04-07 04:43:16 -05:00
|
|
|
|
|
|
|
class MapAdmin(admin.OSMGeoAdmin):
|
|
|
|
search_fields = ("name",)
|
|
|
|
|
|
|
|
|
|
|
|
admin.site.register(Map, MapAdmin)
|
2018-05-18 14:40:38 -05:00
|
|
|
admin.site.register(DataLayer)
|
|
|
|
admin.site.register(Pictogram)
|
|
|
|
admin.site.register(TileLayer, TileLayerAdmin)
|
|
|
|
admin.site.register(Licence)
|