from django.contrib import admin
from leaflet.admin import LeafletGeoAdmin

from .models import CoverageMeasurement, Raster


class RasterAdmin(admin.ModelAdmin):
    list_display = ('slug', 'date', 'name', 'tiles_url')
    date_hierarchy = 'date'
    ordering = ('-date', )


class CoverageMeasurementAdmin(admin.ModelAdmin):
    list_display = [
        'date',
        'scope',
        'area_km2',
        'perc_area_100',
    ]
    date_hierarchy = 'created_at'
    ordering = ('-created_at', )


admin.site.register(Raster, RasterAdmin)
admin.site.register(CoverageMeasurement, CoverageMeasurementAdmin)

44ba7f1a337bd9b83a98887781bc274b0778c077
<mask token>


class RasterAdmin(admin.ModelAdmin):
    <mask token>
    <mask token>
    <mask token>


class CoverageMeasurementAdmin(admin.ModelAdmin):
    list_display = ['date', 'scope', 'area_km2', 'perc_area_100']
    date_hierarchy = 'created_at'
    ordering = '-created_at',


<mask token>

<mask token>


class RasterAdmin(admin.ModelAdmin):
    list_display = 'slug', 'date', 'name', 'tiles_url'
    date_hierarchy = 'date'
    ordering = '-date',


class CoverageMeasurementAdmin(admin.ModelAdmin):
    list_display = ['date', 'scope', 'area_km2', 'perc_area_100']
    date_hierarchy = 'created_at'
    ordering = '-created_at',


<mask token>

<mask token>


class RasterAdmin(admin.ModelAdmin):
    list_display = 'slug', 'date', 'name', 'tiles_url'
    date_hierarchy = 'date'
    ordering = '-date',


class CoverageMeasurementAdmin(admin.ModelAdmin):
    list_display = ['date', 'scope', 'area_km2', 'perc_area_100']
    date_hierarchy = 'created_at'
    ordering = '-created_at',


admin.site.register(Raster, RasterAdmin)
admin.site.register(CoverageMeasurement, CoverageMeasurementAdmin)

from django.contrib import admin
from leaflet.admin import LeafletGeoAdmin
from .models import CoverageMeasurement, Raster


class RasterAdmin(admin.ModelAdmin):
    list_display = 'slug', 'date', 'name', 'tiles_url'
    date_hierarchy = 'date'
    ordering = '-date',


class CoverageMeasurementAdmin(admin.ModelAdmin):
    list_display = ['date', 'scope', 'area_km2', 'perc_area_100']
    date_hierarchy = 'created_at'
    ordering = '-created_at',


admin.site.register(Raster, RasterAdmin)
admin.site.register(CoverageMeasurement, CoverageMeasurementAdmin)

from django.contrib import admin
from leaflet.admin import LeafletGeoAdmin

from .models import CoverageMeasurement, Raster


class RasterAdmin(admin.ModelAdmin):
    list_display = ('slug', 'date', 'name', 'tiles_url')
    date_hierarchy = 'date'
    ordering = ('-date', )


class CoverageMeasurementAdmin(admin.ModelAdmin):
    list_display = [
        'date',
        'scope',
        'area_km2',
        'perc_area_100',
    ]
    date_hierarchy = 'created_at'
    ordering = ('-created_at', )


admin.site.register(Raster, RasterAdmin)
admin.site.register(CoverageMeasurement, CoverageMeasurementAdmin)
