#NEWLINE# @ manager . command #NEWLINE# def make_admin_user( ) : #NEWLINE# #INDENT# password = prompt_pass ( 'Password' ) #NEWLINE# user = User . create ( username = 'admin' , email = 'email@example.com' , password = password , active = True ) #NEWLINE# admin_role = Role ( name = 'admin' ) #NEWLINE# admin_role . save ( ) #NEWLINE# user . roles . append ( admin_role ) #NEWLINE# user . save ( )