@@ -57,7 +57,6 @@ class ForumModelTests(TestCase):
datetime = timezone.now()
thread = testutils.post_thread(self.forum)
- post = testutils.reply_thread(thread)
return thread
@@ -42,8 +42,11 @@ def post_thread(forum, title='Test thread', weight=0, poster='Tester',
})
thread = Thread.objects.create(**kwargs)
- forum.synchronize()
- forum.save()
+ reply_thread(thread,
+ poster=poster,
+ posted_on=thread.last_post_on,
+ is_moderated=is_moderated)
+