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 Jan 20, 2014
1 parent aec8351 commit cec0551
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ckan/lib/dictization/model_dictize.py
Expand Up @@ -356,8 +356,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 @@ -385,6 +383,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 cec0551

Please sign in to comment.