Skip to content

Commit 45e3064

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent d00e147 commit 45e3064

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
@@ -24,7 +24,9 @@ def set_actor(actor, remote_addr=None):
2424

2525
# Connect signal for automatic logging
2626
set_actor = partial(
27-
_set_actor, user=actor, signal_duid=context_data["signal_duid"],
27+
_set_actor,
28+
user=actor,
29+
signal_duid=context_data["signal_duid"],
2830
)
2931
pre_save.connect(
3032
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
@@ -381,7 +381,6 @@ class Action:
381381

382382
objects = LogEntryManager()
383383

384-
385384
class Meta:
386385
get_latest_by = "timestamp"
387386
ordering = ["-timestamp"]

0 commit comments

Comments
 (0)