#NEWLINE# def create( self , request , * args , **kwargs ) : #NEWLINE# #INDENT# serializer = WorkerSkillSerializer ( data = request . data ) #NEWLINE# if serializer . is_valid ( ) : #NEWLINE# #INDENT# serializer . create ( worker = request . user . userprofile . worker ) #NEWLINE# return Response ( { #NEWLINE# #INDENT# 'status' : 'Worker skill created' , #NEWLINE# #UNINDENT# } ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return Response ( serializer . errors , status = status . HTTP_400_BAD_REQUEST )