diff --git a/apis_ontology/settings.py b/apis_ontology/settings.py index 0de87c9..47b013f 100644 --- a/apis_ontology/settings.py +++ b/apis_ontology/settings.py @@ -5,6 +5,7 @@ INSTALLED_APPS += ["apis_highlighter", "django.contrib.postgres", "apis_core.collections"] INSTALLED_APPS.remove("apis_ontology") INSTALLED_APPS.insert(0, "apis_ontology") +INSTALLED_APPS += ["django_action_logger"] ROOT_URLCONF = 'apis_ontology.urls' @@ -35,3 +36,5 @@ "level": "DEBUG", }, } + +LOG_LIST_NOSTAFF_EXCLUDE_APP_LABELS = ["reversion", "admin", "sessions", "auth"] diff --git a/apis_ontology/templates/django_action_logger/djangoactionlogentry_list.html b/apis_ontology/templates/django_action_logger/djangoactionlogentry_list.html new file mode 100644 index 0000000..a0d8600 --- /dev/null +++ b/apis_ontology/templates/django_action_logger/djangoactionlogentry_list.html @@ -0,0 +1,7 @@ +{% extends "base.html" %} + +{% block content %} +
+{% include "django_action_logger/logentrylist.html" %} +
+{% endblock %} diff --git a/apis_ontology/urls.py b/apis_ontology/urls.py index bcde2d1..c3133df 100644 --- a/apis_ontology/urls.py +++ b/apis_ontology/urls.py @@ -19,3 +19,4 @@ ] urlpatterns += staticfiles_urlpatterns() +urlpatterns += [path("logger/", include("django_action_logger.urls")),] diff --git a/pyproject.toml b/pyproject.toml index c0bb7cb..0afd103 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -13,6 +13,7 @@ psycopg2 = "^2.9" apis-core = {git = "https://github.com/acdh-oeaw/apis-core-rdf", rev = "v0.13.0"} apis-highlighter-ng = "^0.1.4" apis-acdhch-default-settings = "0.1.24" +django-action-logger = "^0.1.3" [build-system] requires = ["poetry-core>=1.0.0"]