title: Modifying a Django Rest Framework Request
body: <p>I have a Django rest framework api set up, and I'm trying to insert the current time into incoming <code>PUT</code> requests. I currently have:</p>
  
  <pre><code>class ItemViewSet(viewsets.ModelViewSet):
      queryset = Item.objects.filter(done = False).order_by('-time')
      serializer_class = ItemSerializer
      paginate_by = None
  
      def list(self, request, *args, **kwargs):
          self.object_list = self.filter_queryset(self.get_queryset())
          serializer = self.get_serializer(self.object_list, many=True)
          return Response({'results': serializer.data})
  </code></pre>
  
  <p>This handles partial updates, but I would like to be able to send a request setting an <code>Item</code> to <code>done = True</code> and have the api also insert a unix timestamp into the data sent to the serializer. Could I alter the <code>request</code> object like this, or is there a better way?</p>
  
  <pre><code>def put(self, request, *args, **kwargs):
      request.data['time'] = time.time()
      return self.partial_update(request, *args, **kwargs)
  </code></pre>