changeset 446:72ef6e809f79

For #218, put back the logic that updates the topic last visit after you make a post.
author Brian Neal <bgneal@gmail.com>
date Mon, 13 Jun 2011 02:19:13 +0000
parents e9f203c5f5bb
children 8f46ba2f1b81
files gpp/forums/views/main.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/gpp/forums/views/main.py	Wed Jun 08 00:24:41 2011 +0000
+++ b/gpp/forums/views/main.py	Mon Jun 13 02:19:13 2011 +0000
@@ -348,6 +348,7 @@
         post.user.user_profile = request.user.get_profile()
         post.attach_list = post.attachments.all()
         _bump_post_count(request.user)
+        _update_last_visit(request.user, form.topic, datetime.datetime.now())
 
         return render_to_response('forums/display_post.html', {
             'post': post,
@@ -595,6 +596,7 @@
                 form.attach_proc.save_attachments(post)
 
                 _bump_post_count(request.user)
+                _update_last_visit(request.user, topic, datetime.datetime.now())
                 return HttpResponseRedirect(post.get_absolute_url())
         else:
             quote_id = request.GET.get('quote')