Removed highlight

This commit is contained in:
Martin Mahner 2011-06-10 15:44:45 +02:00
parent 1c9b0341f0
commit f6648037cf

View file

@ -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):