Skip to content
Snippets Groups Projects
Commit cde2759c authored by Saurabh Kumar's avatar Saurabh Kumar
Browse files

update docstring for User -> get_or_create_and_notify

parent 734cbb2b
No related branches found
No related tags found
No related merge requests found
...@@ -123,16 +123,18 @@ class UserManager(BaseUserManager.from_queryset(UserQuerySet)): ...@@ -123,16 +123,18 @@ class UserManager(BaseUserManager.from_queryset(UserQuerySet)):
return params return params
def get_or_create_and_notify(self, defaults=dict(), site=None, **kwargs): def get_or_create_and_notify(self, defaults=dict(), site=None, **kwargs):
"""Create or get an account for applicant. """Create or get an account for applicant.and send activation email to applicant.
Args: Args:
defaults: _description_. Defaults to dict(). defaults: Dict containing user attributes for user creation. Defaults to dict().
site: _description_. Defaults to None. site: current site for sending activation email. Defaults to None.
Raises: Raises:
IntegrityError: if multiple account exist with same email IntegrityError: if multiple account exist with same email
Returns: Returns:
_description_ A tuple containing a user instance and a boolean that indicates
whether the user was created or not.
""" """
_created = False _created = False
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment