mirror of
https://github.com/ae-utbm/sith.git
synced 2025-07-11 04:19:25 +00:00
skip useless checks when creating a subscription for a new member
This commit is contained in:
@ -94,6 +94,13 @@ class SubscriptionNewUserForm(SubscriptionForm):
|
||||
return email
|
||||
|
||||
def clean(self) -> dict[str, Any]:
|
||||
"""Initialize the [User][core.models.User] linked to this subscription.
|
||||
|
||||
Warning:
|
||||
The `User` is initialized, but not saved.
|
||||
Don't use it for operations that expect
|
||||
a persisted object.
|
||||
"""
|
||||
member = User(
|
||||
first_name=self.cleaned_data.get("first_name"),
|
||||
last_name=self.cleaned_data.get("last_name"),
|
||||
|
Reference in New Issue
Block a user