From a1b0388ba5710b6587db5d09c25aef17c4b09e4d Mon Sep 17 00:00:00 2001 From: "S. Andrew Sheppard" Date: Wed, 21 Jun 2023 22:52:37 -0400 Subject: [PATCH] leverage new config options --- db/project_name/settings/base.py | 3 ++- db/project_name_survey/rest.py | 7 +++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/db/project_name/settings/base.py b/db/project_name/settings/base.py index 20c0f51..a1b1185 100644 --- a/db/project_name/settings/base.py +++ b/db/project_name/settings/base.py @@ -151,6 +151,7 @@ VERSION_TXT = BASE_DIR / 'version.txt' MEDIA_URL = '/media/' WQ_CONFIG = { + "logo": "/icon-192.png", "material": { "theme": { "primary": "#7500ae", @@ -158,7 +159,7 @@ } }, "map": { - "bounds": [[-180, -70], [180, 70]] + "bounds": [[-180, -70], [180, 70]] } } diff --git a/db/project_name_survey/rest.py b/db/project_name_survey/rest.py index 90da537..8c42303 100644 --- a/db/project_name_survey/rest.py +++ b/db/project_name_survey/rest.py @@ -5,6 +5,10 @@ rest.router.register_model( Category, + icon="config", + description="Manage available categories", + section="Admin", + show_in_index="can_change", fields="__all__", cache="all", background_sync=False, @@ -12,6 +16,9 @@ rest.router.register_model( Observation, + icon="list", + description="View and submit photos{% if with_gis %} on map{% endif %}", + section="Contributions", serializer=ObservationSerializer, cache="first_page", background_sync=True,{% if with_gis %}