Return instance

This commit is contained in:
Martin Mahner 2011-06-03 23:16:43 +02:00
parent 04e1b17b58
commit 68eabb6c0e

View file

@ -37,7 +37,7 @@ class Snippet(models.Model):
self.published = datetime.datetime.now() self.published = datetime.datetime.now()
self.secret_id = generate_secret_id() self.secret_id = generate_secret_id()
self.content_highlighted = pygmentize(self.content, self.lexer) self.content_highlighted = pygmentize(self.content, self.lexer)
super(Snippet, self).save(*args, **kwargs) return super(Snippet, self).save(*args, **kwargs)
@permalink @permalink
def get_absolute_url(self): def get_absolute_url(self):