Skip to content

Commit a1b0388

Browse files
committed
leverage new config options
1 parent c498a5a commit a1b0388

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

db/project_name/settings/base.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,14 +151,15 @@
151151
VERSION_TXT = BASE_DIR / 'version.txt'
152152
MEDIA_URL = '/media/'
153153
WQ_CONFIG = {
154+
"logo": "/icon-192.png",
154155
"material": {
155156
"theme": {
156157
"primary": "#7500ae",
157158
"secondary": "#0088bd"
158159
}
159160
},
160161
"map": {
161-
"bounds": [[-180, -70], [180, 70]]
162+
"bounds": [[-180, -70], [180, 70]]
162163
}
163164
}
164165

db/project_name_survey/rest.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,20 @@
55

66
rest.router.register_model(
77
Category,
8+
icon="config",
9+
description="Manage available categories",
10+
section="Admin",
11+
show_in_index="can_change",
812
fields="__all__",
913
cache="all",
1014
background_sync=False,
1115
)
1216

1317
rest.router.register_model(
1418
Observation,
19+
icon="list",
20+
description="View and submit photos{% if with_gis %} on map{% endif %}",
21+
section="Contributions",
1522
serializer=ObservationSerializer,
1623
cache="first_page",
1724
background_sync=True,{% if with_gis %}

0 commit comments

Comments
 (0)