Skip to content

Commit

Permalink
Update lacommunaute/forum_conversation/forms.py on @vjousse's suggestion
Browse files Browse the repository at this point in the history
Co-authored-by: Vincent Jousse <[email protected]>
  • Loading branch information
vincentporte and vjousse committed Feb 22, 2024
1 parent 4e17762 commit 9f6423d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lacommunaute/forum_conversation/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def clean(self):
cleaned_data = super().clean()
if "content" in cleaned_data:
post = check_post_approbation(
Post(username=cleaned_data.get("username", None), content=cleaned_data.get("content"))
Post(username=cleaned_data.get("username"), content=cleaned_data.get("content"))
)
if not post.approved:
self.add_error(None, "Votre message ne respecte pas les règles de la communauté.")
Expand Down

0 comments on commit 9f6423d

Please sign in to comment.