Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: error actor is none #613

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions auditlog/receivers.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
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",
Expand Down
Loading