Python formatting

This commit is contained in:
Mouse Reeve
2022-02-17 11:31:52 -08:00
parent 2883c42534
commit 63558bb75e
4 changed files with 7 additions and 9 deletions

View File

@ -59,9 +59,7 @@ class RegisterForm(CustomForm):
cleaned_data = super().clean()
localname = cleaned_data.get("localname").strip()
if models.User.objects.filter(localname=localname).first():
self.add_error(
"localname", _("User with this username already exists")
)
self.add_error("localname", _("User with this username already exists"))
class RatingForm(CustomForm):