Skip to content

Commit

Permalink
[#3022] Call _setup_template_variables on read action
Browse files Browse the repository at this point in the history
  • Loading branch information
amercader committed Dec 5, 2012
1 parent 4ebfe69 commit 77b32b3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ckan/controllers/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,9 @@ def read(self, id, format='html'):
c.current_package_id = c.pkg.id
c.related_count = c.pkg.related_count

self._setup_template_variables(context, {'id': id},
package_type=package_type)

PackageSaver().render_package(c.pkg_dict, context)

template = self._read_template(package_type)
Expand Down

0 comments on commit 77b32b3

Please sign in to comment.