Skip to content

Commit

Permalink
configure REST API preset for catalog listing (#1709)
Browse files Browse the repository at this point in the history
  • Loading branch information
giohappy authored Apr 9, 2024
1 parent e8bba4f commit ad5eecf
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions geonode_mapstore_client/apps.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,26 @@ def run_setup_hooks(*args, **kwargs):
"OPTIONS": {"MAX_ENTRIES": 10000},
}

settings.REST_API_PRESETS["catalog_list"] = {
"exclude[]": ["*"],
"include[]": [
"advertised",
"detail_url",
"is_approved",
"is_copyable",
"is_published",
"owner",
"perms",
"pk",
"raw_abstract",
"resource_type",
"subtype",
"title",
"data",
"executions",
],
}


def connect_geoserver_style_visual_mode_signal():
from geonode.geoserver.signals import geoserver_automatic_default_style_set
Expand Down

0 comments on commit ad5eecf

Please sign in to comment.