diff --git a/metadata_catalogue/maps/admin.py b/metadata_catalogue/maps/admin.py index 943b856..1df87f6 100644 --- a/metadata_catalogue/maps/admin.py +++ b/metadata_catalogue/maps/admin.py @@ -39,6 +39,12 @@ class SourceAdmin(PolymorphicParentModelAdmin): child_models = (RasterSource, VectorSource, Source) list_filter = (PolymorphicChildModelFilter,) + list_display = [ + "id", + "name", + "slug", + ] + class SourceBaseAdmin(PolymorphicChildModelAdmin): base_model = Source @@ -48,11 +54,25 @@ class SourceBaseAdmin(PolymorphicChildModelAdmin): class VectorSourceAdmin(SourceBaseAdmin): base_model = VectorSource + list_display = [ + "id", + "name", + "slug", + "protocol", + ] + @admin.register(RasterSource) class RasterSourceAdmin(SourceBaseAdmin): base_model = RasterSource + list_display = [ + "id", + "name", + "slug", + "protocol", + ] + @admin.register(Layer) class LayerAdmin(admin.ModelAdmin):