Skip to content

Commit

Permalink
Fix for issue global-pulse#94
Browse files Browse the repository at this point in the history
  • Loading branch information
joeyg committed Feb 12, 2012
1 parent cab6f8f commit 4bdc0da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hunchworks/views/groups.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ def hunches(req, group_id):
group = get_object_or_404(models.Group, pk=group_id)

group_members = group.members.values_list("id", flat=True)
all_hunches = models.Hunch.objects.filter(user_profile__in=group_members).order_by("-time_modified")[:3]
all_hunches = (models.Hunch.objects.filter(user_profiles__in=group_members) | models.Hunch.objects.filter(creator__in=group_members)).order_by("-time_modified")[:3]

hunches = paginated(req, all_hunches, 10)

Expand Down

0 comments on commit 4bdc0da

Please sign in to comment.