Skip to content

Commit

Permalink
[#1390] Move context definition to prevent exception
Browse files Browse the repository at this point in the history
  • Loading branch information
amercader committed Dec 13, 2013
1 parent 6213f0d commit b65e706
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ckan/lib/dictization/model_dictize.py
Expand Up @@ -355,8 +355,6 @@ def group_dictize(group, context):
result_dict['extras'] = extras_dict_dictize(
group._extras, context)

context['with_capacity'] = True

include_datasets = context.get('include_datasets', True)

q = {
Expand Down Expand Up @@ -384,6 +382,7 @@ def group_dictize(group, context):

result_dict['package_count'] = search_results['count']

context['with_capacity'] = True
result_dict['tags'] = tag_list_dictize(
_get_members(context, group, 'tags'),
context)
Expand Down

0 comments on commit b65e706

Please sign in to comment.