From f6648037cf7993c4ed9a81a89055ab6c24db51c6 Mon Sep 17 00:00:00 2001 From: Martin Mahner Date: Fri, 10 Jun 2011 15:44:45 +0200 Subject: [PATCH] Removed highlight --- pastebin/apps/dpaste/models.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pastebin/apps/dpaste/models.py b/pastebin/apps/dpaste/models.py index 5584a18..2ff2e4e 100644 --- a/pastebin/apps/dpaste/models.py +++ b/pastebin/apps/dpaste/models.py @@ -37,8 +37,7 @@ class Snippet(models.Model): if not self.pk: self.published = datetime.datetime.now() self.secret_id = generate_secret_id() - if self.content and self.lexer: - self.content_highlighted = pygmentize(self.content, self.lexer) + self.content_highlighted = self.content super(Snippet, self).save(*args, **kwargs) def get_absolute_url(self):