Skip to content

Commit

Permalink
#515 make it so organization titles are in facet listing
Browse files Browse the repository at this point in the history
  • Loading branch information
kindly committed Mar 18, 2013
1 parent 106c902 commit 34911b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ckan/logic/action/get.py
Expand Up @@ -1323,7 +1323,7 @@ def package_search(context, data_dict):
for key_, value_ in value.items():
new_facet_dict = {}
new_facet_dict['name'] = key_
if key == 'groups':
if key in ('groups', 'organization'):
group = model.Group.get(key_)
if group:
new_facet_dict['display_name'] = group.display_name
Expand Down

0 comments on commit 34911b9

Please sign in to comment.