apis-acdhch-default-settings 2.12.2__tar.gz → 2.14.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {apis_acdhch_default_settings-2.12.2 → apis_acdhch_default_settings-2.14.0}/.github/workflows/add-to-project.yml +1 -1
- {apis_acdhch_default_settings-2.12.2 → apis_acdhch_default_settings-2.14.0}/.github/workflows/linters.yml +7 -7
- {apis_acdhch_default_settings-2.12.2 → apis_acdhch_default_settings-2.14.0}/.github/workflows/publish.yml +2 -2
- {apis_acdhch_default_settings-2.12.2 → apis_acdhch_default_settings-2.14.0}/.github/workflows/release-please.yml +1 -1
- {apis_acdhch_default_settings-2.12.2 → apis_acdhch_default_settings-2.14.0}/CHANGELOG.md +23 -0
- {apis_acdhch_default_settings-2.12.2 → apis_acdhch_default_settings-2.14.0}/PKG-INFO +2 -2
- {apis_acdhch_default_settings-2.12.2 → apis_acdhch_default_settings-2.14.0}/apis_acdhch_default_settings/querysets.py +11 -0
- {apis_acdhch_default_settings-2.12.2 → apis_acdhch_default_settings-2.14.0}/apis_acdhch_default_settings/settings.py +6 -0
- {apis_acdhch_default_settings-2.12.2 → apis_acdhch_default_settings-2.14.0}/apis_acdhch_default_settings/templates/partials/footer.html +2 -2
- {apis_acdhch_default_settings-2.12.2 → apis_acdhch_default_settings-2.14.0}/apis_acdhch_default_settings/urls.py +2 -2
- {apis_acdhch_default_settings-2.12.2 → apis_acdhch_default_settings-2.14.0}/pyproject.toml +2 -2
- {apis_acdhch_default_settings-2.12.2 → apis_acdhch_default_settings-2.14.0}/.github/dependabot.yml +0 -0
- {apis_acdhch_default_settings-2.12.2 → apis_acdhch_default_settings-2.14.0}/.gitignore +0 -0
- {apis_acdhch_default_settings-2.12.2 → apis_acdhch_default_settings-2.14.0}/LICENSE +0 -0
- {apis_acdhch_default_settings-2.12.2 → apis_acdhch_default_settings-2.14.0}/README.md +0 -0
- {apis_acdhch_default_settings-2.12.2 → apis_acdhch_default_settings-2.14.0}/apis_acdhch_default_settings/__init__.py +0 -0
- {apis_acdhch_default_settings-2.12.2 → apis_acdhch_default_settings-2.14.0}/apis_acdhch_default_settings/ldapauth.py +0 -0
- {apis_acdhch_default_settings-2.12.2 → apis_acdhch_default_settings-2.14.0}/apis_acdhch_default_settings/locale/de/LC_MESSAGES/django.mo +0 -0
- {apis_acdhch_default_settings-2.12.2 → apis_acdhch_default_settings-2.14.0}/apis_acdhch_default_settings/locale/de/LC_MESSAGES/django.po +0 -0
- {apis_acdhch_default_settings-2.12.2 → apis_acdhch_default_settings-2.14.0}/apis_acdhch_default_settings/templates/base.html +0 -0
- {apis_acdhch_default_settings-2.12.2 → apis_acdhch_default_settings-2.14.0}/apis_acdhch_default_settings/templates/e53_place_from_typesense_autocomplete_result.html +0 -0
- {apis_acdhch_default_settings-2.12.2 → apis_acdhch_default_settings-2.14.0}/apis_acdhch_default_settings/templates/imprint.html +0 -0
- {apis_acdhch_default_settings-2.12.2 → apis_acdhch_default_settings-2.14.0}/apis_acdhch_default_settings/views.py +0 -0
|
@@ -13,7 +13,7 @@ on:
|
|
|
13
13
|
|
|
14
14
|
jobs:
|
|
15
15
|
add-to-project:
|
|
16
|
-
uses: acdh-oeaw/prosnet-workflows/.github/workflows/add-to-project.yml@v0.5.
|
|
16
|
+
uses: acdh-oeaw/prosnet-workflows/.github/workflows/add-to-project.yml@v0.5.2
|
|
17
17
|
secrets:
|
|
18
18
|
ADD_TO_PROJECT_TOKEN: ${{ secrets.ADD_TO_PROJECT_TOKEN }}
|
|
19
19
|
with:
|
|
@@ -10,7 +10,7 @@ jobs:
|
|
|
10
10
|
runs-on: ubuntu-latest
|
|
11
11
|
|
|
12
12
|
steps:
|
|
13
|
-
- uses: actions/checkout@
|
|
13
|
+
- uses: actions/checkout@v5
|
|
14
14
|
|
|
15
15
|
- name: Install uv
|
|
16
16
|
uses: astral-sh/setup-uv@v6
|
|
@@ -22,7 +22,7 @@ jobs:
|
|
|
22
22
|
runs-on: ubuntu-latest
|
|
23
23
|
|
|
24
24
|
steps:
|
|
25
|
-
- uses: actions/checkout@
|
|
25
|
+
- uses: actions/checkout@v5
|
|
26
26
|
|
|
27
27
|
- name: Install uv
|
|
28
28
|
uses: astral-sh/setup-uv@v6
|
|
@@ -34,31 +34,31 @@ jobs:
|
|
|
34
34
|
runs-on: ubuntu-latest
|
|
35
35
|
|
|
36
36
|
steps:
|
|
37
|
-
- uses: actions/checkout@
|
|
37
|
+
- uses: actions/checkout@v5
|
|
38
38
|
|
|
39
39
|
- name: Install uv
|
|
40
40
|
uses: astral-sh/setup-uv@v6
|
|
41
41
|
|
|
42
|
-
- name: Run
|
|
42
|
+
- name: Run djLint formatter
|
|
43
43
|
run: uv run --only-dev djlint --check .
|
|
44
44
|
|
|
45
45
|
djlint-linter:
|
|
46
46
|
runs-on: ubuntu-latest
|
|
47
47
|
|
|
48
48
|
steps:
|
|
49
|
-
- uses: actions/checkout@
|
|
49
|
+
- uses: actions/checkout@v5
|
|
50
50
|
|
|
51
51
|
- name: Install uv
|
|
52
52
|
uses: astral-sh/setup-uv@v6
|
|
53
53
|
|
|
54
|
-
- name: Run
|
|
54
|
+
- name: Run djLint linter
|
|
55
55
|
run: uv run --only-dev djlint --lint .
|
|
56
56
|
|
|
57
57
|
deptry:
|
|
58
58
|
runs-on: ubuntu-latest
|
|
59
59
|
|
|
60
60
|
steps:
|
|
61
|
-
- uses: actions/checkout@
|
|
61
|
+
- uses: actions/checkout@v5
|
|
62
62
|
|
|
63
63
|
- name: Install uv
|
|
64
64
|
uses: astral-sh/setup-uv@v6
|
|
@@ -11,9 +11,9 @@ jobs:
|
|
|
11
11
|
runs-on: ubuntu-latest
|
|
12
12
|
|
|
13
13
|
steps:
|
|
14
|
-
- uses: actions/checkout@
|
|
14
|
+
- uses: actions/checkout@v5
|
|
15
15
|
- name: Set up Python
|
|
16
|
-
uses: actions/setup-python@
|
|
16
|
+
uses: actions/setup-python@v6
|
|
17
17
|
with:
|
|
18
18
|
python-version: "3.x"
|
|
19
19
|
- name: Install gettext
|
|
@@ -1,5 +1,28 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [2.14.0](https://github.com/acdh-oeaw/apis-acdhch-default-settings/compare/v2.13.0...v2.14.0) (2025-09-24)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* **settings:** add AuditlogMiddleware to MIDDLEWAREs ([e69a47e](https://github.com/acdh-oeaw/apis-acdhch-default-settings/commit/e69a47e31081cf6e7d6f98f44e3846e1dce54a33))
|
|
9
|
+
* **settings:** add HtmxMessageMiddleware to MIDDLEWAREs ([233a00c](https://github.com/acdh-oeaw/apis-acdhch-default-settings/commit/233a00cb7f43d2b9fa0813ee7f37945fab49f1b5))
|
|
10
|
+
* **settings:** add uris to INSTALLED_APPS ([37ff4df](https://github.com/acdh-oeaw/apis-acdhch-default-settings/commit/37ff4df3849f13f3da725b515d8d1e6f654f5df4)), closes [#247](https://github.com/acdh-oeaw/apis-acdhch-default-settings/issues/247)
|
|
11
|
+
|
|
12
|
+
## [2.13.0](https://github.com/acdh-oeaw/apis-acdhch-default-settings/compare/v2.12.2...v2.13.0) (2025-09-08)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Features
|
|
16
|
+
|
|
17
|
+
* **querysets:** add ExternalAutocomplete for E74_Group ([3e24922](https://github.com/acdh-oeaw/apis-acdhch-default-settings/commit/3e249223e91292340295ee6540cb915adce4476d)), closes [#235](https://github.com/acdh-oeaw/apis-acdhch-default-settings/issues/235)
|
|
18
|
+
* **settings:** replace git:// with https:// for GIT_REPOSITORY_URL ([ab577a4](https://github.com/acdh-oeaw/apis-acdhch-default-settings/commit/ab577a4338341dfde9550e7c7abc6c4c3a224c5b))
|
|
19
|
+
* **templates:** change block override in footer.html ([8750737](https://github.com/acdh-oeaw/apis-acdhch-default-settings/commit/8750737996d6a4ea9bae622223a9b2fdcc3bdf5e))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
### Bug Fixes
|
|
23
|
+
|
|
24
|
+
* **urls:** use apps.is_installed for checking app availability ([54f47c7](https://github.com/acdh-oeaw/apis-acdhch-default-settings/commit/54f47c7f2ac0efcd4b1756bce98364d139946c13)), closes [#233](https://github.com/acdh-oeaw/apis-acdhch-default-settings/issues/233)
|
|
25
|
+
|
|
3
26
|
## [2.12.2](https://github.com/acdh-oeaw/apis-acdhch-default-settings/compare/v2.12.1...v2.12.2) (2025-08-27)
|
|
4
27
|
|
|
5
28
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: apis-acdhch-default-settings
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.14.0
|
|
4
4
|
Summary: Default settings for APIS instances at the ACDH-CH
|
|
5
5
|
Project-URL: source, https://github.com/acdh-oeaw/apis-acdhch-default-settings
|
|
6
6
|
Project-URL: changelog, https://github.com/acdh-oeaw/apis-acdhch-default-settings/blob/main/CHANGELOG.md
|
|
@@ -10,7 +10,7 @@ License-Expression: MIT
|
|
|
10
10
|
License-File: LICENSE
|
|
11
11
|
Requires-Python: >=3.11
|
|
12
12
|
Requires-Dist: apis-acdhch-django-auditlog>=0.2.1
|
|
13
|
-
Requires-Dist: apis-core-rdf>=0.
|
|
13
|
+
Requires-Dist: apis-core-rdf>=0.54.0
|
|
14
14
|
Requires-Dist: dj-database-url<4.0,>=2.0.0
|
|
15
15
|
Requires-Dist: django-allow-cidr<0.9,>=0.6
|
|
16
16
|
Requires-Dist: django-auditlog>=3.1.2
|
|
@@ -7,6 +7,17 @@ from apis_core.utils.autocomplete import (
|
|
|
7
7
|
)
|
|
8
8
|
|
|
9
9
|
|
|
10
|
+
class E74_GroupExternalAutocomplete(ExternalAutocomplete):
|
|
11
|
+
adapters = [
|
|
12
|
+
LobidAutocompleteAdapter(
|
|
13
|
+
params={
|
|
14
|
+
"filter": "type:CorporateBody",
|
|
15
|
+
"format": "json:preferredName,geographicAreaCode,dateOfEstablishment,broaderTermInstantial",
|
|
16
|
+
}
|
|
17
|
+
),
|
|
18
|
+
]
|
|
19
|
+
|
|
20
|
+
|
|
10
21
|
class E53_PlaceExternalAutocomplete(ExternalAutocomplete):
|
|
11
22
|
adapters = [
|
|
12
23
|
TypeSenseAutocompleteAdapter(
|
|
@@ -32,6 +32,7 @@ INSTALLED_APPS = [
|
|
|
32
32
|
"apis_core.generic",
|
|
33
33
|
"apis_core.collections",
|
|
34
34
|
"apis_core.history",
|
|
35
|
+
"apis_core.uris",
|
|
35
36
|
"apis_core.relations",
|
|
36
37
|
"apis_core.apis_entities",
|
|
37
38
|
"apis_core.apis_metainfo",
|
|
@@ -119,6 +120,10 @@ MIDDLEWARE = [
|
|
|
119
120
|
"crum.CurrentRequestUserMiddleware",
|
|
120
121
|
# this is used by the apis_core.history module:
|
|
121
122
|
"simple_history.middleware.HistoryRequestMiddleware",
|
|
123
|
+
# a middleware to add Django messages to response headers
|
|
124
|
+
"apis_core.generic.middleware.HtmxMessageMiddleware",
|
|
125
|
+
# allow auditlog to automatically set the actor for log entries
|
|
126
|
+
"auditlog.middleware.AuditlogMiddleware",
|
|
122
127
|
]
|
|
123
128
|
|
|
124
129
|
# https://docs.djangoproject.com/en/stable/ref/settings/#root-urlconf
|
|
@@ -244,6 +249,7 @@ if debug := os.environ.get("DJANGO_DEBUG", False):
|
|
|
244
249
|
# information to set the repository url in APIS
|
|
245
250
|
if os.environ.get("GITLAB_ENVIRONMENT_URL"):
|
|
246
251
|
GIT_REPOSITORY_URL = os.environ.get("GITLAB_ENVIRONMENT_URL")
|
|
252
|
+
GIT_REPOSITORY_URL = GIT_REPOSITORY_URL.replace("git://", "https://")
|
|
247
253
|
|
|
248
254
|
|
|
249
255
|
# https://docs.djangoproject.com/en/stable/ref/settings/#login-url
|
|
@@ -9,9 +9,9 @@
|
|
|
9
9
|
src="https://fundament.acdh.oeaw.ac.at/common-assets/images/acdh_logo.svg" />
|
|
10
10
|
</a>
|
|
11
11
|
{% endblock footer-center %}
|
|
12
|
-
{% block
|
|
12
|
+
{% block footer-right %}
|
|
13
13
|
{% url "imprint" as imprint_url %}
|
|
14
14
|
{% if imprint_url %}
|
|
15
15
|
<a href="{{ imprint_url }}">{% translate "Imprint" %}</a>
|
|
16
16
|
{% endif %}
|
|
17
|
-
{% endblock
|
|
17
|
+
{% endblock footer-right %}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
from django.
|
|
1
|
+
from django.apps import apps
|
|
2
2
|
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
|
|
3
3
|
from django.urls import include
|
|
4
4
|
from django.contrib import admin
|
|
@@ -17,7 +17,7 @@ urlpatterns = [
|
|
|
17
17
|
]
|
|
18
18
|
urlpatterns += staticfiles_urlpatterns()
|
|
19
19
|
|
|
20
|
-
if "apis_bibsonomy"
|
|
20
|
+
if apps.is_installed("apis_bibsonomy"):
|
|
21
21
|
urlpatterns.append(
|
|
22
22
|
path("bibsonomy/", include("apis_bibsonomy.urls", namespace="bibsonomy"))
|
|
23
23
|
)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "apis-acdhch-default-settings"
|
|
3
|
-
version = "2.
|
|
3
|
+
version = "2.14.0"
|
|
4
4
|
description = "Default settings for APIS instances at the ACDH-CH"
|
|
5
5
|
readme = "README.md"
|
|
6
6
|
requires-python = ">=3.11"
|
|
@@ -21,7 +21,7 @@ dependencies = [
|
|
|
21
21
|
"opentelemetry-distro",
|
|
22
22
|
"django-removals>=1.0.5,<=2.0",
|
|
23
23
|
"django>=5",
|
|
24
|
-
"apis-core-rdf>=0.
|
|
24
|
+
"apis-core-rdf>=0.54.0",
|
|
25
25
|
"requests>=2",
|
|
26
26
|
"django-auditlog>=3.1.2",
|
|
27
27
|
"apis-acdhch-django-auditlog>=0.2.1",
|
{apis_acdhch_default_settings-2.12.2 → apis_acdhch_default_settings-2.14.0}/.github/dependabot.yml
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|