зеркало из https://github.com/mozilla/kitsune.git
[bug 648138] Fix localized forum preview of new threads.
This commit is contained in:
Родитель
e4bc9d1a1a
Коммит
e35bd18ea0
|
@ -180,6 +180,8 @@ def new_thread(request, forum_slug):
|
|||
title=form.cleaned_data['title'])
|
||||
post_preview = Post(thread=thread, author=request.user,
|
||||
content=form.cleaned_data['content'])
|
||||
post_preview.author_post_count = \
|
||||
post_preview.author.post_set.count()
|
||||
else:
|
||||
thread = forum.thread_set.create(creator=request.user,
|
||||
title=form.cleaned_data['title'])
|
||||
|
|
Загрузка…
Ссылка в новой задаче