mirror of
https://github.com/ae-utbm/sith.git
synced 2025-07-10 20:09:25 +00:00
ruff rule FBT
This commit is contained in:
@ -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()
|
||||
|
Reference in New Issue
Block a user