      """
      def put(self, request, *args, **kwargs):
          model = self.resource.model
  
          # TODO: update on the url of a non-existing resource url doesn't work
          # correctly at the moment - will end up with a new url
          try:
              self.model_instance = self.get_instance(*query_kwargs)
 
</s> remove             self.model_instance = self.get_object(*args, **kwargs)
 </s> add             self.model_instance = self.get_instance(*query_kwargs) </s> remove         Returns the dict with the data for model instance creation/update query.
 </s> add         Returns the dict with the data for model instance creation/update. </s> remove             self.model_instance = self.get_object(*args, **kwargs)
 </s> add             self.model_instance = self.get_instance(**query_kwargs)
        query_kwargs = self.get_query_kwargs(request, *args, **kwargs)
      """
      def put(self, request, *args, **kwargs):
          model = self.resource.model
        query_kwargs = self.get_query_kwargs(request, *args, **kwargs)
  
          # TODO: update on the url of a non-existing resource url doesn't work
          # correctly at the moment - will end up with a new url
          try:
              self.model_instance = self.get_instance(*query_kwargs)
keep keep add keep keep keep keep keep
 Remove use of Q objects. 
djangorestframework/mixins.py