mirror of
https://github.com/jazzband/django-auditlog.git
synced 2026-05-15 11:03:11 +00:00
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
7a6382f43d
commit
48c4113961
2 changed files with 4 additions and 3 deletions
|
|
@ -1,12 +1,13 @@
|
|||
from functools import wraps
|
||||
|
||||
from crum import get_current_user
|
||||
from django.conf import settings
|
||||
|
||||
from auditlog.context import auditlog_disabled
|
||||
from auditlog.diff import model_instance_diff
|
||||
from auditlog.models import LogEntry
|
||||
from auditlog.signals import post_log, pre_log
|
||||
from crum import get_current_user
|
||||
|
||||
|
||||
def check_disable(signal_handler):
|
||||
"""
|
||||
|
|
@ -126,7 +127,7 @@ def _create_log_entry(
|
|||
action=action,
|
||||
changes=changes,
|
||||
force_log=force_log,
|
||||
actor=get_current_user()
|
||||
actor=get_current_user(),
|
||||
)
|
||||
except BaseException as e:
|
||||
error = e
|
||||
|
|
|
|||
2
setup.py
2
setup.py
|
|
@ -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", 'django-crum'],
|
||||
install_requires=["Django>=3.2", "python-dateutil>=2.7.0", "django-crum"],
|
||||
zip_safe=False,
|
||||
classifiers=[
|
||||
"Programming Language :: Python :: 3",
|
||||
|
|
|
|||
Loading…
Reference in a new issue