Skip to content

Commit

Permalink
[2304] Fixed missing related count
Browse files Browse the repository at this point in the history
Fix the missing related count on the following page for a given
dataset.
  • Loading branch information
rossjones committed May 14, 2012
1 parent 7dcfb17 commit 67b1913
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ckan/controllers/package.py
Expand Up @@ -796,6 +796,8 @@ def followers(self, id=None):
{'id': c.pkg_dict['id']})
c.num_followers = len(c.followers)
self._setup_follow_button(context)

c.related_count = len(c.pkg.related)
except NotFound:
abort(404, _('Dataset not found'))
except NotAuthorized:
Expand Down

0 comments on commit 67b1913

Please sign in to comment.