Permalink
Browse files

Keep the thread pinned until after the karma action is saved. [bug 67…

…1542]
  • Loading branch information...
1 parent 222022e commit 761bb15422d7275807a5ac5e6d9e6b112ca15256 @rlr rlr committed Jul 14, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 apps/questions/tasks.py
View
3 apps/questions/tasks.py
@@ -79,9 +79,10 @@ def log_answer(answer):
action.users.add(*users)
transaction.commit_unless_managed()
- unpin_this_thread()
# Record karma actions
AnswerAction(answer.creator, answer.created.date()).save()
if answer == answer.question.answers.order_by('created')[0]:
FirstAnswerAction(answer.creator, answer.created.date()).save()
+
+ unpin_this_thread()

0 comments on commit 761bb15

Please sign in to comment.