Skip to content

Commit

Permalink
fix(BlockedPost): remet username nullable
Browse files Browse the repository at this point in the history
  • Loading branch information
calummackervoy committed Jun 11, 2024
1 parent eb9ab62 commit 9897a23
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class Migration(migrations.Migration):
verbose_name="Poster",
),
),
("username", models.EmailField(max_length=254, verbose_name="Adresse email")),
("username", models.EmailField(max_length=254, null=True, blank=True, verbose_name="Adresse email")),
("content", models.CharField(verbose_name="Content")),
("block_reason", models.CharField(verbose_name="Block Reason")),
],
Expand Down
2 changes: 1 addition & 1 deletion lacommunaute/forum_moderation/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class BlockedPost(DatedModel):
on_delete=models.CASCADE,
verbose_name=_("Poster"),
)
username = models.EmailField(verbose_name=("Adresse email"))
username = models.EmailField(null=True, blank=True, verbose_name=("Adresse email"))
content = models.CharField(verbose_name=_("Content"))
block_reason = models.CharField(verbose_name=_("Block Reason"))

Expand Down

0 comments on commit 9897a23

Please sign in to comment.