Mercurial > public > sg101
diff gpp/forums/views/main.py @ 562:98b373ca09f3
For bitbucket issue #3, ensure that changes to Profile, Post & Topic models
via the admin cause the search index to be updated.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Wed, 08 Feb 2012 18:58:57 -0600 |
parents | 7388cdf61b25 |
children | 4b9970ad0edb |
line wrap: on
line diff
--- a/gpp/forums/views/main.py Mon Feb 06 20:37:02 2012 -0600 +++ b/gpp/forums/views/main.py Wed Feb 08 18:58:57 2012 -0600 @@ -34,7 +34,6 @@ from forums.unread import (get_forum_unread_status, get_topic_unread_status, get_post_unread_status, get_unread_topics) -from forums.attachments import AttachmentProcessor import forums.permissions as perms from forums.signals import (notify_new_topic, notify_updated_topic, notify_new_post, notify_updated_post) @@ -527,7 +526,7 @@ profile = post.user.get_profile() if profile.forum_post_count > 0: profile.forum_post_count -= 1 - profile.save() + profile.save(content_update=False) # If this post is the last_post in a topic, we need to update # both the topic and parent forum's last post fields. If we don't @@ -999,7 +998,7 @@ """ profile = user.get_profile() profile.forum_post_count += 1 - profile.save() + profile.save(content_update=False) def _quote_message(who, message):