def get_object(self, queryset=None):
        project_pk = self.kwargs.get('project_slug', None)
        release_slug = self.kwargs.get('release_slug', None)
        try:
            obj = Release.objects.get(project=project_pk, slug=release_slug)
        except __HOLE__:
            raise Http404(_("No releases found matching the query"))
        return obj
dataset/ETHPy150Open danirus/django-comments-xtd/django_comments_xtd/demos/multiple/projects/views.py/ReleaseDetailView.get_object