Skip to content

Commit

Permalink
[#2939] Do not list organization in package group list
Browse files Browse the repository at this point in the history
  • Loading branch information
tobes committed Sep 28, 2012
1 parent 8350e90 commit 08b39a7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ckan/lib/dictization/model_dictize.py
Expand Up @@ -239,7 +239,8 @@ def package_dictize(pkg, context):
q = select([group, member_rev.c.capacity],
from_obj=member_rev.join(group, group.c.id == member_rev.c.group_id)
).where(member_rev.c.table_id == pkg.id)\
.where(member_rev.c.state == 'active')
.where(member_rev.c.state == 'active') \
.where(group.c.is_organization == False)
result = _execute_with_revision(q, member_rev, context)
result_dict["groups"] = d.obj_list_dictize(result, context)
#relations
Expand Down

0 comments on commit 08b39a7

Please sign in to comment.