Mercurial > public > sg101
comparison forums/views/main.py @ 1166:130ac1e98cf4
More V3 forums tweaking.
Adding attachments is working now.
Adding a post via ajax is working.
Still need to display attachments on posts.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sun, 20 Aug 2017 15:55:54 -0500 |
parents | 68811c583bfb |
children |
comparison
equal
deleted
inserted
replaced
1165:3d17714c9a26 | 1166:130ac1e98cf4 |
---|---|
339 post.unread = True | 339 post.unread = True |
340 post.attach_list = post.attachments.all() | 340 post.attach_list = post.attachments.all() |
341 _bump_post_count(request.user) | 341 _bump_post_count(request.user) |
342 _update_last_visit(request.user, form.topic, datetime.datetime.now()) | 342 _update_last_visit(request.user, form.topic, datetime.datetime.now()) |
343 | 343 |
344 return render(request, 'forums/display_post.html', { | 344 return render(request, 'forums/display_post_v3.html', { |
345 'post': post, | 345 'post': post, |
346 'can_moderate': perms.can_moderate(form.topic.forum, request.user), | 346 'can_moderate': perms.can_moderate(form.topic.forum, request.user), |
347 'can_reply': True, | 347 'can_reply': True, |
348 }) | 348 }) |
349 | 349 |