Skip to content

Commit

Permalink
fix(settings): set the max relations per page to 1000
Browse files Browse the repository at this point in the history
  • Loading branch information
b1rger committed Jul 24, 2024
1 parent 996d144 commit ddd02af
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions apis_ontology/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -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},
}

0 comments on commit ddd02af

Please sign in to comment.