I have seen this many times and looked it everywhere but couldn't figure out what it actually means and is it mandatory? I have not used this data._mutable = True or False
in my code before and I am not sure whether I should be using it or not.
The code snippet looks somewhat like this.
def update(self, request, *args, **kwargs):
instance = self.get_object()
data = request.data
if data.get("something") == "null":
data._mutable = True
data["something"] = None
data._mutable = False
Why do we need to assign True or False to the private attribute _mutable of data object.??