From 68eabb6c0e2db9f207438ce70b933df13997e840 Mon Sep 17 00:00:00 2001 From: Martin Mahner Date: Fri, 3 Jun 2011 23:16:43 +0200 Subject: [PATCH] Return instance --- pastebin/apps/dpaste/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pastebin/apps/dpaste/models.py b/pastebin/apps/dpaste/models.py index 3ac9331..22b2f36 100644 --- a/pastebin/apps/dpaste/models.py +++ b/pastebin/apps/dpaste/models.py @@ -37,7 +37,7 @@ class Snippet(models.Model): self.published = datetime.datetime.now() self.secret_id = generate_secret_id() self.content_highlighted = pygmentize(self.content, self.lexer) - super(Snippet, self).save(*args, **kwargs) + return super(Snippet, self).save(*args, **kwargs) @permalink def get_absolute_url(self):