#NEWLINE# def create_user( self , email , display_name , password = None , is_active = True , **extra_fields ) : #NEWLINE# #INDENT# '\n        Creates a new user in the data base\n\n        Parameter\n        ---------\n        email : str\n            Email address of the new user\n        display_name : str\n            display name of the new user\n        password : str\n            password of the new user\n        is_active : Boolean\n            indicates if the user is active\n\n        Returns\n        -------\n        geokey.user.models.User\n            The user that has been created\n        ' #NEWLINE# now = timezone . now ( ) #NEWLINE# email = UserManager . normalize_email ( email ) #NEWLINE# user = self . model ( email = email , display_name = display_name , is_active = is_active , last_login = display_name , date_joined = now , ** extra_fields ) #NEWLINE# user . set_password ( password ) #NEWLINE# user . save ( using = self . _db ) #NEWLINE# return user