Skip to content

Commit

Permalink
Fix localized forum preview. [bug 648138]
Browse files Browse the repository at this point in the history
  • Loading branch information
James Socol committed Apr 18, 2011
1 parent ed4c83e commit 0d4c2ff
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions apps/forums/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,8 @@ def reply(request, forum_slug, thread_id):
reply_.author = request.user
if 'preview' in request.POST:
reply_preview = reply_
reply_preview.author_post_count = \
reply_.author.post_set.count()
else:
reply_.save()

Expand Down

0 comments on commit 0d4c2ff

Please sign in to comment.