Skip to content

Commit

Permalink
leverage new config options
Browse files Browse the repository at this point in the history
  • Loading branch information
sheppard committed Jun 22, 2023
1 parent c498a5a commit a1b0388
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
3 changes: 2 additions & 1 deletion db/project_name/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,14 +151,15 @@
VERSION_TXT = BASE_DIR / 'version.txt'
MEDIA_URL = '/media/'
WQ_CONFIG = {
"logo": "/icon-192.png",
"material": {
"theme": {
"primary": "#7500ae",
"secondary": "#0088bd"
}
},
"map": {
"bounds": [[-180, -70], [180, 70]]
"bounds": [[-180, -70], [180, 70]]
}
}

Expand Down
7 changes: 7 additions & 0 deletions db/project_name_survey/rest.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,20 @@

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,
)

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 %}
Expand Down

0 comments on commit a1b0388

Please sign in to comment.