Skip to content

Commit

Permalink
Limit related hunches (in sidebar) to 4.
Browse files Browse the repository at this point in the history
They're pretty big right now. We can show more when they're smaller.
  • Loading branch information
adammck committed Dec 21, 2011
1 parent f46a167 commit 17cc5f6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hunchworks/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -320,8 +320,8 @@ def comment_count(self):
def contributor_count(self):
return self.contributors().count()

def get_related_hunches(self):
return Hunch.objects.all()
def get_related_hunches(self, limit=4):
return Hunch.objects.all()[:limit]


post_save.connect(
Expand Down

0 comments on commit 17cc5f6

Please sign in to comment.