diff gpp/forums/views.py @ 112:d1b0b86441c0

Forums: added a sync() function on the forum model. Created javascript for the moderate forum function to drive the master topic select checkbox.
author Brian Neal <bgneal@gmail.com>
date Wed, 30 Sep 2009 00:42:13 +0000
parents e5faf9f0c11a
children d97ceb95ce02
line wrap: on
line diff
--- a/gpp/forums/views.py	Mon Sep 28 03:57:09 2009 +0000
+++ b/gpp/forums/views.py	Wed Sep 30 00:42:13 2009 +0000
@@ -558,11 +558,9 @@
         topic.forum = new_forum
         topic.save()
         # Have to adjust foreign keys to last_post, denormalized counts, etc.:
-        old_forum.topic_count_update()
-        old_forum.post_count_update()
+        old_forum.sync()
         old_forum.save()
-        new_forum.topic_count_update()
-        new_forum.post_count_update()
+        new_forum.sync()
         new_forum.save()