title: Django Rest Framework update field
body: <p>I am new to DRF and I am trying to write custom view / serializer that I can use to update just one field of user object.</p>
  
  <p>I need to make logic just to update the "name" of the user. </p>
  
  <p>I wrote serializer:</p>
  
  <pre><code>class ClientNameSerializer(serializers.ModelSerializer):
      class Meta:
          model = ClientUser
          fields = ('name',)
  
      def update(self, instance, validated_data):
          instance.name = validated_data.get('name', instance.name)
          instance.save()
          return instance
  </code></pre>
  
  <p>This method is never called. I tried setting breakpoint there and debug it, but it is never called, even if I use PUT, POST or PATCH methods. If I add <strong>create</strong> method it is being called when I use POST.</p>
  
  <p>This is how my view looks like:</p>
  
  <pre><code>class UpdateName(generics.CreateAPIView):
      queryset = ClientUser.objects.all()
      serializer_class = ClientNameSerializer
      permission_classes = (permissions.IsAuthenticated,)
  </code></pre>
  
  <p>Does anyone have some suggestion? Thanks!</p>
  
  <p>My <strong>models.py</strong> looks like this</p>
  
  <pre><code>class ClientUser(models.Model):
      owner = models.OneToOneField(User,unique=True,primary_key=True)
  
      phone_number = models.CharField(validators=[PHONE_REGEX],max_length=20,unique=True)
  
      name = models.CharField(max_length=100,blank=True)
      status = models.IntegerField(default=1)
      member_from = models.DateTimeField('member from',auto_now_add=True)
      is_member = models.BooleanField(default=False)
  </code></pre>