Skip to content
This repository has been archived by the owner on Mar 14, 2024. It is now read-only.

Commit

Permalink
chore(deps): bump apis-core-rdf to 0.6.2, webpag to 1.0.1
Browse files Browse the repository at this point in the history
adapt settings accordingly
  • Loading branch information
b1rger committed Nov 6, 2023
1 parent aaa9ce0 commit bdc370b
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 5 deletions.
17 changes: 14 additions & 3 deletions apis_ontology/settings/server_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,13 +95,17 @@ def genderchoices():
from apis_ontology.models import Person
return Person.GENDER_CHOICES + (("empty", "Nicht gesetzt"),)

detail_view_exclude = ["references", "notes", "published", "review"]

APIS_ENTITIES = {
"Salary": {
"relations_per_page": 100,
"search": ["name"],
"list_filters": {
"typ": {"method": filter_empty_string, "extra": {"choices": salarychoices, "required": False }},
}
},
"detail_view_exclude": detail_view_exclude,

},
"Function": {
"relations_per_page": 100,
Expand All @@ -113,10 +117,12 @@ def genderchoices():
"name",
"alternative_label",
],
"detail_view_exclude": detail_view_exclude,
},
"Court": {
"relations_per_page": 100,
"search": ["name", "alternative_label"]
"search": ["name", "alternative_label"],
"detail_view_exclude": detail_view_exclude,
},
"Place": {
"relations_per_page": 100,
Expand All @@ -127,7 +133,8 @@ def genderchoices():
"additional_cols": ["id", "lat", "lng", "part_of"],
"list_filters": {
"type": {"method": filter_empty_string, "extra": {"choices": placechoices, "required": False }},
}
},
"detail_view_exclude": detail_view_exclude,
},
"Person": {
"relations_per_page": 100,
Expand All @@ -154,6 +161,7 @@ def genderchoices():
"name": {"method": name_first_name_alternative_name_filter, "label": "Name or first name or alternative name"},
"gender": {"method": filter_empty_string, "extra": {"choices": genderchoices, "required": False}},
},
"detail_view_exclude": detail_view_exclude,
},
"Institution": {
"relations_per_page": 100,
Expand All @@ -171,6 +179,7 @@ def genderchoices():
"id",
"kind",
],
"detail_view_exclude": detail_view_exclude,
},
"Work": {
"relations_per_page": 100,
Expand All @@ -180,6 +189,7 @@ def genderchoices():
"id",
"kind",
],
"detail_view_exclude": detail_view_exclude,
},
"Event": {
"relations_per_page": 100,
Expand All @@ -188,6 +198,7 @@ def genderchoices():
"additional_cols": [
"id",
],
"detail_view_exclude": detail_view_exclude,
},
}

Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ packages = [{include = "apis_ontology"}]
python = "^3.11"
django = ">=4.1,<4.2"
mysqlclient = "^2.0.3"
apis-core = { git = "https://github.com/acdh-oeaw/apis-core-rdf.git", tag = "v0.6.1" }
webpage = { git = "https://github.com/acdh-oeaw/apis-webpage.git", tag = "v0.2.0" }
apis-core = { git = "https://github.com/acdh-oeaw/apis-core-rdf.git", tag = "v0.6.2" }
webpage = { git = "https://github.com/acdh-oeaw/apis-webpage.git", tag = "v1.0.1" }
apis-bibsonomy = { git = "https://github.com/acdh-oeaw/apis-bibsonomy.git", branch = "birger/fix-referenceonform-issues" }
apis-acdhch-default-settings = { git = "https://github.com/acdh-oeaw/apis-acdhch-default-settings.git", tag = "v0.1.9" }
django-matomo = "^0.1.6"
Expand Down

0 comments on commit bdc370b

Please sign in to comment.