Skip to content

Commit 08cdd17

Browse files
pre-commit-ci[bot]hamedsh
authored andcommitted
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 2c4f391 commit 08cdd17

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

auditlog/context.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@ def set_actor(actor, remote_addr=None, remote_port=None):
2525

2626
# Connect signal for automatic logging
2727
set_actor = partial(
28-
_set_actor, user=actor, signal_duid=context_data["signal_duid"],
28+
_set_actor,
29+
user=actor,
30+
signal_duid=context_data["signal_duid"],
2931
)
3032
pre_save.connect(
3133
set_actor,

auditlog/migrations/0016_add_actor_email.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,10 @@ class Migration(migrations.Migration):
1111
model_name="logentry",
1212
name="actor_email",
1313
field=models.CharField(
14-
null=True, verbose_name="actor email", blank=True, max_length=254,
14+
null=True,
15+
verbose_name="actor email",
16+
blank=True,
17+
max_length=254,
1518
),
1619
),
1720
]

auditlog/models.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,6 @@ class Action:
388388

389389
objects = LogEntryManager()
390390

391-
392391
class Meta:
393392
get_latest_by = "timestamp"
394393
ordering = ["-timestamp"]

0 commit comments

Comments
 (0)