

def get_object(self, request, **kwargs):
    if (not hasattr(request, 'instance')):
        queryset = self.get_queryset(request, self.get_params(request))
        try:
            instance = queryset.get(**kwargs)
        except self.model.DoesNotExist:
            instance = None
        request.instance = instance
    return queryset.instance

dataset/ETHPy150Open chop-dbhi/serrano/serrano/resources/category.py CategoryBase.get_object/VarMisuse@81/92 `request`->`queryset`