From 75261c2157f6bcde47c5efeab4c3056fe8d6de9d Mon Sep 17 00:00:00 2001 From: devketanpro Date: Mon, 1 Jul 2024 12:09:11 +0530 Subject: [PATCH] As an editor I would like to search authors by 'University' field in Author Profiles desk [TGA-101] --- server/settings.py | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/server/settings.py b/server/settings.py index 8b5bb61..f7beadb 100644 --- a/server/settings.py +++ b/server/settings.py @@ -203,3 +203,24 @@ # Disable purging of publish queue PUBLISH_QUEUE_EXPIRY_MINUTES = 0 + +SCHEMA_UPDATE = { + "archive": { + "extra": { + "type": "dict", + "schema": {}, + "mapping": { + "type": "object", + "properties": { + "university": { + "properties": { + "qcode": {"type": "string"}, + "name": {"type": "string"}, + } + }, + }, + }, + "allow_unknown": True, + } + } +}