I am following this tutorial but facing these problems I can\'t fix:
I've used wsgeorge's solution to build my own. A blank User object is created just so I can use .set_password():
def create(self, validated_data):
user = User()
user.set_password(validated_data['password'])
validated_data['password'] = user.password
return super(UserSerializer, self).create(validated_data)
Different from his answer, I do not save the user myself. I leave that to the parent class calling super.