apis-acdhch-default-settings 2.9.0__tar.gz → 2.11.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.
Files changed (22) hide show
  1. {apis_acdhch_default_settings-2.9.0 → apis_acdhch_default_settings-2.11.0}/CHANGELOG.md +15 -0
  2. {apis_acdhch_default_settings-2.9.0 → apis_acdhch_default_settings-2.11.0}/PKG-INFO +4 -2
  3. {apis_acdhch_default_settings-2.9.0 → apis_acdhch_default_settings-2.11.0}/apis_acdhch_default_settings/querysets.py +1 -0
  4. {apis_acdhch_default_settings-2.9.0 → apis_acdhch_default_settings-2.11.0}/apis_acdhch_default_settings/settings.py +2 -1
  5. apis_acdhch_default_settings-2.11.0/apis_acdhch_default_settings/templates/e53_place_from_typesense_autocomplete_result.html +13 -0
  6. {apis_acdhch_default_settings-2.9.0 → apis_acdhch_default_settings-2.11.0}/apis_acdhch_default_settings/urls.py +3 -0
  7. {apis_acdhch_default_settings-2.9.0 → apis_acdhch_default_settings-2.11.0}/pyproject.toml +7 -3
  8. {apis_acdhch_default_settings-2.9.0 → apis_acdhch_default_settings-2.11.0}/.github/dependabot.yml +0 -0
  9. {apis_acdhch_default_settings-2.9.0 → apis_acdhch_default_settings-2.11.0}/.github/workflows/add-to-project.yml +0 -0
  10. {apis_acdhch_default_settings-2.9.0 → apis_acdhch_default_settings-2.11.0}/.github/workflows/linters.yml +0 -0
  11. {apis_acdhch_default_settings-2.9.0 → apis_acdhch_default_settings-2.11.0}/.github/workflows/publish.yml +0 -0
  12. {apis_acdhch_default_settings-2.9.0 → apis_acdhch_default_settings-2.11.0}/.github/workflows/release-please.yml +0 -0
  13. {apis_acdhch_default_settings-2.9.0 → apis_acdhch_default_settings-2.11.0}/.gitignore +0 -0
  14. {apis_acdhch_default_settings-2.9.0 → apis_acdhch_default_settings-2.11.0}/LICENSE +0 -0
  15. {apis_acdhch_default_settings-2.9.0 → apis_acdhch_default_settings-2.11.0}/README.md +0 -0
  16. {apis_acdhch_default_settings-2.9.0 → apis_acdhch_default_settings-2.11.0}/apis_acdhch_default_settings/__init__.py +0 -0
  17. {apis_acdhch_default_settings-2.9.0 → apis_acdhch_default_settings-2.11.0}/apis_acdhch_default_settings/ldapauth.py +0 -0
  18. {apis_acdhch_default_settings-2.9.0 → apis_acdhch_default_settings-2.11.0}/apis_acdhch_default_settings/locale/de/LC_MESSAGES/django.mo +0 -0
  19. {apis_acdhch_default_settings-2.9.0 → apis_acdhch_default_settings-2.11.0}/apis_acdhch_default_settings/locale/de/LC_MESSAGES/django.po +0 -0
  20. {apis_acdhch_default_settings-2.9.0 → apis_acdhch_default_settings-2.11.0}/apis_acdhch_default_settings/templates/base.html +0 -0
  21. {apis_acdhch_default_settings-2.9.0 → apis_acdhch_default_settings-2.11.0}/apis_acdhch_default_settings/templates/imprint.html +0 -0
  22. {apis_acdhch_default_settings-2.9.0 → apis_acdhch_default_settings-2.11.0}/apis_acdhch_default_settings/views.py +0 -0
@@ -1,5 +1,20 @@
1
1
  # Changelog
2
2
 
3
+ ## [2.11.0](https://github.com/acdh-oeaw/apis-acdhch-default-settings/compare/v2.10.0...v2.11.0) (2025-06-26)
4
+
5
+
6
+ ### Features
7
+
8
+ * **autocomplete:** add a template for the typesense place results ([9d2b0b9](https://github.com/acdh-oeaw/apis-acdhch-default-settings/commit/9d2b0b92d6a1eecabeff6b48a0219a302e983f02))
9
+ * **settings:** add auditlog apps to INSTALLED_APPS ([ff34ecf](https://github.com/acdh-oeaw/apis-acdhch-default-settings/commit/ff34ecf59b23540441987c2e4d5ce874ee69be87))
10
+
11
+ ## [2.10.0](https://github.com/acdh-oeaw/apis-acdhch-default-settings/compare/v2.9.0...v2.10.0) (2025-06-10)
12
+
13
+
14
+ ### Features
15
+
16
+ * **settings:** drop crispy_bootstrap4 from INSTALLED_APPS ([6ce2983](https://github.com/acdh-oeaw/apis-acdhch-default-settings/commit/6ce2983ba90e112a6e0f275116e39c9f1d6fc503))
17
+
3
18
  ## [2.9.0](https://github.com/acdh-oeaw/apis-acdhch-default-settings/compare/v2.8.0...v2.9.0) (2025-05-22)
4
19
 
5
20
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: apis-acdhch-default-settings
3
- Version: 2.9.0
3
+ Version: 2.11.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
@@ -9,9 +9,11 @@ Author-email: Birger Schacht <birger.schacht@oeaw.ac.at>
9
9
  License-Expression: MIT
10
10
  License-File: LICENSE
11
11
  Requires-Python: >=3.11
12
+ Requires-Dist: apis-acdhch-django-auditlog>=0.2.1
12
13
  Requires-Dist: apis-core-rdf>=0.40.0
13
- Requires-Dist: dj-database-url<3.0,>=2.0.0
14
+ Requires-Dist: dj-database-url<4.0,>=2.0.0
14
15
  Requires-Dist: django-allow-cidr<0.8,>=0.6
16
+ Requires-Dist: django-auditlog>=3.1.2
15
17
  Requires-Dist: django-auth-ldap<6.0,>=4.6.0
16
18
  Requires-Dist: django-csp<4.0,>=3.7
17
19
  Requires-Dist: django-removals<=2.0,>=1.0.5
@@ -14,6 +14,7 @@ class E53_PlaceExternalAutocomplete(ExternalAutocomplete):
14
14
  "prosnet-wikidata-place-index",
15
15
  "prosnet-geonames-place-index",
16
16
  ],
17
+ template="e53_place_from_typesense_autocomplete_result.html",
17
18
  token=os.getenv("TYPESENSE_TOKEN", None),
18
19
  server=os.getenv("TYPESENSE_SERVER", None),
19
20
  ),
@@ -22,7 +22,6 @@ INSTALLED_APPS = [
22
22
  "django.contrib.staticfiles",
23
23
  "django_removals",
24
24
  "crispy_forms",
25
- "crispy_bootstrap4",
26
25
  "crispy_bootstrap5",
27
26
  "django_filters",
28
27
  "django_tables2",
@@ -38,6 +37,8 @@ INSTALLED_APPS = [
38
37
  "apis_core.core",
39
38
  "rest_framework.authtoken",
40
39
  "drf_spectacular",
40
+ "auditlog",
41
+ "apis_acdhch_django_auditlog",
41
42
  ]
42
43
 
43
44
  # https://docs.djangoproject.com/en/stable/ref/settings/#std-setting-USE_X_FORWARDED_HOST
@@ -0,0 +1,13 @@
1
+ {% if result.document.coordinates %}
2
+ <a data-latitude="{{ result.document.coordinates.0|floatformat:"4u" }}"
3
+ data-longitude="{{ result.document.coordinates.1|floatformat:"4u" }}"
4
+ title="Map"
5
+ onmouseenter="showMap(this);"
6
+ onmouseout="delMap(this);"><span class="material-symbols-outlined material-symbols-align">location_on</span></a>
7
+ {% endif %}
8
+ {% if result.highlight.label.snippet %}
9
+ {{ result.highlight.label.snippet|safe }}
10
+ {% else %}
11
+ {{ result.document.label }}
12
+ {% endif %}
13
+ {% if result.document.id %}{{ result.document.id|urlize }}{% endif %}
@@ -24,3 +24,6 @@ if "apis_bibsonomy" in settings.INSTALLED_APPS:
24
24
 
25
25
  urlpatterns.append(path("", TemplateView.as_view(template_name="base.html")))
26
26
  urlpatterns.append(path("imprint", Imprint.as_view(), name="imprint"))
27
+ urlpatterns += [
28
+ path("", include("apis_acdhch_django_auditlog.urls")),
29
+ ]
@@ -1,13 +1,13 @@
1
1
  [project]
2
2
  name = "apis-acdhch-default-settings"
3
- version = "2.9.0"
3
+ version = "2.11.0"
4
4
  description = "Default settings for APIS instances at the ACDH-CH"
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.11"
7
7
  authors = [{ name = "Birger Schacht", email = "birger.schacht@oeaw.ac.at" }]
8
8
  license = "MIT"
9
9
  dependencies = [
10
- "dj-database-url>=2.0.0,<3.0",
10
+ "dj-database-url>=2.0.0,<4.0",
11
11
  "django-allow-cidr>=0.6,<0.8",
12
12
  "django-csp>=3.7,<4.0",
13
13
  "whitenoise>=5.2,<7.0",
@@ -23,6 +23,8 @@ dependencies = [
23
23
  "django>=5",
24
24
  "apis-core-rdf>=0.40.0",
25
25
  "requests>=2",
26
+ "django-auditlog>=3.1.2",
27
+ "apis-acdhch-django-auditlog>=0.2.1",
26
28
  ]
27
29
  [project.urls]
28
30
  source = "https://github.com/acdh-oeaw/apis-acdhch-default-settings"
@@ -58,7 +60,9 @@ DEP002 = [
58
60
  "opentelemetry-instrumentation-logging",
59
61
  "opentelemetry-instrumentation-psycopg2",
60
62
  "opentelemetry-exporter-otlp",
61
- "opentelemetry-distro"
63
+ "opentelemetry-distro",
64
+ "django-auditlog",
65
+ "apis-acdhch-django-auditlog"
62
66
  ]
63
67
 
64
68
  [tool.deptry.package_module_name_map]