Skip to content

Commit 02f5c31

Browse files
C4ptainCrunchclaude
andcommitted
Add spaces after commas when serializing list values in moderation log
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 5ef24fe commit 02f5c31

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

moderation/models.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,11 +149,11 @@ def track(cls, user, content_object: models.Model, values: dict[str, tuple]):
149149
if isinstance(old, (collections.abc.Iterable, QuerySet)) and not isinstance( # type: ignore
150150
old, str
151151
):
152-
old = ",".join([str(x) for x in old]) # noqa: PLW2901
152+
old = ", ".join([str(x) for x in old]) # noqa: PLW2901
153153
if isinstance(new, (collections.abc.Iterable, QuerySet)) and not isinstance( # type: ignore
154154
new, str
155155
):
156-
new = ",".join([str(x) for x in new]) # noqa: PLW2901
156+
new = ", ".join([str(x) for x in new]) # noqa: PLW2901
157157
if old != new:
158158
cls.objects.create(
159159
user=user,

0 commit comments

Comments
 (0)