#NEWLINE# def create_mturk_user( apps , schema_editor ) : #NEWLINE# #INDENT# user = apps . get_model ( 'auth' , 'User' ) #NEWLINE# profile = apps . get_model ( 'crowdsourcing' , 'UserProfile' ) #NEWLINE# worker = apps . get_model ( 'crowdsourcing' , 'Worker' ) #NEWLINE# mturk_user = user . objects . create ( username = 'mturk' , email = 'mturk.worker@daemo.stanford.edu' , password = make_password ( generate_random_id ( ) ) , is_active = False ) #NEWLINE# mturk_profile = profile . objects . get_or_create ( user = mturk_user ) #NEWLINE# mturk_worker = worker . objects . get_or_create ( profile = profile [ 0 ] , alias = 'mturk' )