1class Login(generics.CreateAPIView):
2 serializer_class = MySerializerClass
3 def create(self, request, *args, **kwargs):
4 request.data._mutable = True
5 request.data['username'] = "example@mail.com"
6 request.data._mutable = False