def get_object(self, queryset=None):
if queryset is None:<EOL><INDENT>queryset = self.get_queryset()<EOL><DEDENT>try:<EOL><INDENT>pk = long(self.request.GET[self.pk_url_kwarg])<EOL><DEDENT>except (KeyError, ValueError):<EOL><INDENT>raise Http404("<STR_LIT>")<EOL><DEDENT>queryset = queryset.filter(pk=pk)<EOL>try:<EOL><INDENT>obj = queryset.get()<EOL><DEDENT>except ObjectDoesNotExist as e:<EOL><INDENT>raise Http404(e)<EOL><DEDENT>return obj<EOL>
Returns the object the view is displaying.