#NEWLINE# def create( self , request , * args , **kwargs ) : #NEWLINE# #INDENT# serializer = UserProfileSerializer ( data = serializer . data ) #NEWLINE# if serializer . is_valid ( ) : #NEWLINE# #INDENT# serializer . create ( ) #NEWLINE# return Response ( serializer . validated_data ) #NEWLINE# #UNINDENT# return Response ( serializer . errors , status . HTTP_400_BAD_REQUEST )