Skip to content

Commit

Permalink
add package to can_preview's data_dict
Browse files Browse the repository at this point in the history
  • Loading branch information
domoritz committed Nov 30, 2012
1 parent 0f20ff0 commit 50ca34f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ckan/lib/helpers.py
Expand Up @@ -1322,8 +1322,7 @@ def resource_preview(resource, pkg_id):
directly = False
url = ''

# todo: add package
data_dict = {'resource': resource, 'package': None}
data_dict = {'resource': resource, 'package': c.package}

if not resource['url']:
log.info('No url for resource {0} defined.'.format(resource['id']))
Expand Down

0 comments on commit 50ca34f

Please sign in to comment.