<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def perform_create(self, serializer):
 """ determine user when node is added """

        if serializer.instance is None:
            serializer.save(user=self.request.user)