title: django rest framework create user with password
body: <p>Using django-rest-framework 3 and django 1.8  </p>
  
  <p>I am trying to create a user using django-rest-framework ModelViewSerializer. problem is that the default objects.create method used by DRF leave the password as plain text.</p>
  
  <p>The problem is that DRF serialzer create method is using <code>objects.create</code> <a href="https://docs.djangoproject.com/en/1.4/ref/models/querysets/#create" rel="noreferrer">querysets/#create</a> method instead of using <code>objects.create_user</code> method.</p>
  
  <p>code from <a href="https://github.com/tomchristie/django-rest-framework/blob/master/rest_framework/serializers.py" rel="noreferrer">serializers.py</a> line 775</p>
  
  <pre><code>instance = ModelClass.objects.create(**validated_data)
  </code></pre>
  
  <p>What is the best solution for this? i can override the serializer.create method to use objects.user_create instead of objects.create but it does not feel like the right solution.</p>
  
  <p>rest of code:</p>
  
  <pre><code>from django.contrib.auth.models import User
  from rest_framework import viewsets
  
  class UserSerializer(serializers.ModelSerializer):
      class Meta:
          model = User
          fields = ('username', 'email','password')
          write_only_fields = ('password',)
  
  
  class UserViewSet(viewsets.ModelViewSet):   
      queryset = User.objects.all()
      serializer = UserSerializer()
  </code></pre>