This commit is contained in:
Ibrahim Morghim 2024-10-07 15:25:58 -03:00 committed by GitHub
commit a97ca3f161
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 1 deletions

View file

@ -1,5 +1,6 @@
from functools import wraps
from crum import get_current_user
from django.conf import settings
from auditlog.context import auditlog_disabled
@ -126,6 +127,7 @@ def _create_log_entry(
action=action,
changes=changes,
force_log=force_log,
actor=get_current_user(),
)
except BaseException as e:
error = e

View file

@ -28,7 +28,7 @@ setup(
long_description=long_description,
long_description_content_type="text/markdown",
python_requires=">=3.8",
install_requires=["Django>=3.2", "python-dateutil>=2.7.0"],
install_requires=["Django>=3.2", "python-dateutil>=2.7.0", "django-crum"],
zip_safe=False,
classifiers=[
"Programming Language :: Python :: 3",