#NEWLINE# def verify_user( self , user_id ) : #NEWLINE# #INDENT# "\n        Function that changes user status to 'verified' in the database.\n        \n        :parameter user_id:\n            Identifier of the user\n        :type user_id:\n            int\n        :returns:\n            None\n        " #NEWLINE# user = get_object_or_404 ( UserProfile , user_ptr = user_id ) #NEWLINE# user . is_verified = True #NEWLINE# user . save ( ) #NEWLINE# allauth_adapter . get_adapter ( ) . send_mail ( template_prefix = 'email/email_user_activated' , email = user . email , context = { #NEWLINE# #INDENT# 'user_email' : user . email , #NEWLINE# #UNINDENT# } )