Permalink
Browse files

need a set here

  • Loading branch information...
1 parent d83cf31 commit 1f942da9dac557457507aa631b005277cff37701 @brosner brosner committed Feb 17, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 agora/models.py
View
@@ -346,7 +346,7 @@ def setup_onsite(cls):
for user in User.objects.all():
threads = ForumThread.objects.filter(author=user).values_list("pk", flat=True)
threads_by_replies = ForumReply.objects.filter(author=user).distinct().values_list("thread", flat=True)
- for thread in threads.union(threads_by_replies):
+ for thread in set(threads).union(threads_by_replies):
ForumThread.objects.get(pk=thread).subscribe(user, "onsite")

0 comments on commit 1f942da

Please sign in to comment.