mirror of
https://github.com/DarrenOfficial/dpaste.git
synced 2024-11-15 08:02:54 +11:00
Removed highlight
This commit is contained in:
parent
1c9b0341f0
commit
f6648037cf
1 changed files with 1 additions and 2 deletions
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue