title: Django REST Framework - How to encrypt the passwords from PUT and PATCH?
body: <p>Currently any password that I PUT or PATCH do not get encrypted.</p>
  
  <p>I am using a ModelSerializer.</p>
  
  <pre><code>class UserSerializer (serializers.ModelSerializer):
      class Meta:
          model = User
          fields = ('url', 'username', 'email', 'pk')
  </code></pre>
  
  <p>With a ModelViewSet</p>
  
  <pre><code>class UserViewSet (ModelViewSet):
      queryset = User.objects.all()
      serializer_class = UserSerializer
  </code></pre>
  
  <p>Why are my passwords saved as plain text? And how do I fix this?</p>
  
  <p>Should I overwrite the update () in serialiser or update () in ViewSet? Where's the problem?</p>