From ddd02af060fcf91508726755133fd39fdbd994ad Mon Sep 17 00:00:00 2001 From: Birger Schacht Date: Mon, 22 Jul 2024 12:22:41 +0200 Subject: [PATCH] fix(settings): set the max relations per page to 1000 --- apis_ontology/settings.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/apis_ontology/settings.py b/apis_ontology/settings.py index af6105d..0520cbb 100644 --- a/apis_ontology/settings.py +++ b/apis_ontology/settings.py @@ -45,3 +45,14 @@ MIDDLEWARE += ['auditlog.middleware.AuditlogMiddleware'] APIS_BASE_URI = "https://oebl-pfp.acdh-ch-dev.oeaw.ac.at" + +# this is a workaround to disable pagintation in the relations +# listing on the entities pages +APIS_ENTITIES = { + "Event": {"relations_per_page": 1000}, + "Institution": {"relations_per_page": 1000}, + "Person": {"relations_per_page": 1000}, + "Place": {"relations_per_page": 1000}, + "Work": {"relations_per_page": 1000}, + "Denomination": {"relations_per_page": 1000}, + }