Skip to content

Commit

Permalink
[#2304] Fix dataset follower count on resource read page
Browse files Browse the repository at this point in the history
  • Loading branch information
Sean Hammond committed May 9, 2012
1 parent f01cc89 commit b159daa
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ckan/controllers/package.py
Expand Up @@ -792,6 +792,9 @@ def resource_read(self, id, resource_id):
qualified=True)

c.related_count = len(c.pkg.related)
c.num_followers = get_action('follower_count')(context,
{'id':c.pkg.id})
self._setup_follow_button(context)
return render('package/resource_read.html')

def followers(self, id=None):
Expand Down

0 comments on commit b159daa

Please sign in to comment.