Commit 08e7d069 by Bridger Maxwell

Fixed bug for first article creation.

--HG--
branch : bridgerwiki
parent 614f1566
......@@ -260,7 +260,7 @@ class Revision(models.Model):
self.counter = previous_revision[0].counter + 1
else:
self.counter = 1
if (self.article.current_revision.deleted == 0):
if (self.article.current_revision and self.article.current_revision.deleted == 0):
self.previous_revision = self.article.current_revision
# Create pre-parsed contents - no need to parse on-the-fly
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment