Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] authored and hamedsh committed Jan 21, 2025
1 parent 2c4f391 commit 08cdd17
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 3 additions & 1 deletion auditlog/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ def set_actor(actor, remote_addr=None, remote_port=None):

# Connect signal for automatic logging
set_actor = partial(
_set_actor, user=actor, signal_duid=context_data["signal_duid"],
_set_actor,
user=actor,
signal_duid=context_data["signal_duid"],
)
pre_save.connect(
set_actor,
Expand Down
5 changes: 4 additions & 1 deletion auditlog/migrations/0016_add_actor_email.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@ class Migration(migrations.Migration):
model_name="logentry",
name="actor_email",
field=models.CharField(
null=True, verbose_name="actor email", blank=True, max_length=254,
null=True,
verbose_name="actor email",
blank=True,
max_length=254,
),
),
]
1 change: 0 additions & 1 deletion auditlog/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,6 @@ class Action:

objects = LogEntryManager()


class Meta:
get_latest_by = "timestamp"
ordering = ["-timestamp"]
Expand Down

0 comments on commit 08cdd17

Please sign in to comment.