Answers for "query dict immuteable"

0

query dict immuteable

class Login(generics.CreateAPIView):
    serializer_class = MySerializerClass
    def create(self, request, *args, **kwargs):
        request.data._mutable = True
        request.data['username'] = "[email protected]"
        request.data._mutable = False
Posted by: Guest on August-18-2021

Python Answers by Framework

Browse Popular Code Answers by Language