def get_object(self, request, content_type_id, object_id):
        ct = get_object_or_404(ContentType, pk=content_type_id)
        try:
            obj = ct.get_object_for_this_type(pk=object_id)
        except __HOLE__:
            raise Http404('No %s matches the given query.' % ct.model_class()._meta.object_name)
        return obj
dataset/ETHPy150Open justquick/django-activity-stream/actstream/feeds.py/ObjectActivityMixin.get_object