Skip to content

Commit

Permalink
[#1978] Don't include datasets on get_organization helpers
Browse files Browse the repository at this point in the history
They are not really needed and decrease significantly the performance
  • Loading branch information
amercader committed Oct 14, 2014
1 parent e4e1fe9 commit 696a54e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ckan/lib/helpers.py
Expand Up @@ -1795,11 +1795,11 @@ def check_config_permission(permission):
return new_authz.check_config_permission(permission)


def get_organization(org=None):
def get_organization(org=None, include_datasets=False):
if org is None:
return {}
try:
return logic.get_action('organization_show')({}, {'id': org})
return logic.get_action('organization_show')({}, {'id': org, 'include_datasets': include_datasets})
except (NotFound, ValidationError, NotAuthorized):
return {}

Expand Down

0 comments on commit 696a54e

Please sign in to comment.