From 0a082c0dde3d8d558f157836824735f18d373ca3 Mon Sep 17 00:00:00 2001 From: Evgeny Fadeev Date: Thu, 14 Oct 2010 19:42:59 -0400 Subject: fixed indentation error --- askbot/models/content.py | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/askbot/models/content.py b/askbot/models/content.py index 6c524125..03b2a725 100644 --- a/askbot/models/content.py +++ b/askbot/models/content.py @@ -273,15 +273,15 @@ class Content(models.Model): ) def post_get_last_update_info(self):#todo: rename this subroutine - when = self.added_at - who = self.author - if self.last_edited_at and self.last_edited_at > when: - when = self.last_edited_at - who = self.last_edited_by - comments = self.comments.all() - if len(comments) > 0: - for c in comments: - if c.added_at > when: - when = c.added_at - who = c.user - return when, who + when = self.added_at + who = self.author + if self.last_edited_at and self.last_edited_at > when: + when = self.last_edited_at + who = self.last_edited_by + comments = self.comments.all() + if len(comments) > 0: + for c in comments: + if c.added_at > when: + when = c.added_at + who = c.user + return when, who -- cgit v1.2.3-1-g7c22