From 0123fc151212c9dc2d2fea29a5b50798f62d9ddc Mon Sep 17 00:00:00 2001 From: Martin Mahner Date: Sat, 21 Jan 2017 14:46:05 +0100 Subject: [PATCH] Removed tree --- dpaste/views.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/dpaste/views.py b/dpaste/views.py index f938811..17326eb 100644 --- a/dpaste/views.py +++ b/dpaste/views.py @@ -102,13 +102,11 @@ class SnippetDetailView(SnippetView, DetailView): def get_context_data(self, **kwargs): self.object = snippet = self.get_object() - tree = snippet.get_root().get_descendants(include_self=True) ctx = super(SnippetDetailView, self).get_context_data(**kwargs) ctx.update(template_globals) ctx.update({ 'highlighted': self.highlight_snippet().splitlines(), - 'tree': tree, 'wordwrap': snippet.lexer in LEXER_WORDWRAP and 'True' or 'False', }) return ctx