#NEWLINE# def get_worker( self , obj ) : #NEWLINE# #INDENT# if ( not obj . worker ) : #NEWLINE# #INDENT# return { #NEWLINE# #INDENT# 'id' : None , #NEWLINE# 'username' : None , #NEWLINE# 'first_name' : None , #NEWLINE# 'last_name' : None , #NEWLINE# #UNINDENT# } #NEWLINE# #UNINDENT# return { #NEWLINE# #INDENT# 'id' : obj . worker . id , #NEWLINE# 'username' : obj . worker . user . username , #NEWLINE# 'first_name' : obj . worker . user . first_name , #NEWLINE# 'last_name' : obj . worker . user . last_name , #NEWLINE# #UNINDENT# }