summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEvgeny Fadeev <evgeny.fadeev@gmail.com>2010-10-14 19:42:59 -0400
committerEvgeny Fadeev <evgeny.fadeev@gmail.com>2010-10-14 19:42:59 -0400
commit0a082c0dde3d8d558f157836824735f18d373ca3 (patch)
tree7ecc55328c40019af137d9abe5c80c9d58b95fc3
parent3c3ea521ec2e9de8a0bebeb2496a7d7790e90631 (diff)
downloadaskbot-0a082c0dde3d8d558f157836824735f18d373ca3.tar.gz
askbot-0a082c0dde3d8d558f157836824735f18d373ca3.tar.bz2
askbot-0a082c0dde3d8d558f157836824735f18d373ca3.zip
fixed indentation error
-rw-r--r--askbot/models/content.py24
1 files 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