ruff rule FBT

This commit is contained in:
thomas girod committed 2024-07-08 15:37:09 +02:00
1 parent cfc19434d0
commit 171a1cb876
11 files changed
+26 -26

No files matched your search

+1 -1
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()