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:
|
if not self.pk:
|
||||||
self.published = datetime.datetime.now()
|
self.published = datetime.datetime.now()
|
||||||
self.secret_id = generate_secret_id()
|
self.secret_id = generate_secret_id()
|
||||||
if self.content and self.lexer:
|
self.content_highlighted = self.content
|
||||||
self.content_highlighted = pygmentize(self.content, self.lexer)
|
|
||||||
super(Snippet, self).save(*args, **kwargs)
|
super(Snippet, self).save(*args, **kwargs)
|
||||||
|
|
||||||
def get_absolute_url(self):
|
def get_absolute_url(self):
|
||||||
|
|
Loading…
Reference in a new issue