ruff rule FBT

This commit is contained in:
thomas girod
2024-06-27 14:57:40 +02:00
parent cfc19434d0
commit 171a1cb876
11 changed files with 26 additions and 26 deletions

View File

@ -194,7 +194,7 @@ class RegisteringForm(UserCreationForm):
model = User
fields = ("first_name", "last_name", "email")
def save(self, commit=True):
def save(self, *, commit=True):
user = super().save(commit=False)
user.set_password(self.cleaned_data["password1"])
user.generate_username()