@@ -32,17 +32,20 @@ class RasterFileAdmin(admin.ModelAdmin):
3232
3333@admin .register (RasterDataset )
3434class RasterDatasetAdmin (admin .ModelAdmin ):
35- list_display = ["id" , "cluster" , "name" , "created" , "updated" , "file" ]
35+ list_display = ["id" , "name" , "cluster" , "type" , "updated" , "file" ]
36+ list_filter = ["cluster" , "type" ]
3637
3738
3839@admin .register (VectorDataset )
3940class VectorDatasetAdmin (admin .ModelAdmin ):
40- list_display = ["id" , "cluster" , "name" , "created" , "updated" ]
41+ list_display = ["id" , "name" , "cluster" , "type" , "updated" ]
42+ list_filter = ["cluster" , "type" ]
4143
4244
4345@admin .register (VectorItem )
4446class VectorItemAdmin (admin .GISModelAdmin ):
4547 list_display = ["id" , "dataset" , "metadata" ]
48+ list_filter = ["dataset" ]
4649
4750 def get_urls (self ):
4851 urls = super ().get_urls ()
@@ -117,12 +120,14 @@ def import_file(self, request):
117120
118121@admin .register (TabularDataset )
119122class TabularDatasetAdmin (admin .ModelAdmin ):
120- list_display = ["id" , "cluster" , "name" , "created" , "updated" ]
123+ list_display = ["id" , "name" , "cluster" , "type" , "updated" ]
124+ list_filter = ["cluster" , "type" ]
121125
122126
123127@admin .register (TabularItem )
124128class TabularItemAdmin (admin .GISModelAdmin ):
125129 list_display = ["id" , "dataset" , "data" ]
130+ list_filter = ["dataset" ]
126131
127132 def get_urls (self ):
128133 urls = super ().get_urls ()
0 commit comments