Skip to content

Commit

Permalink
[#1038] Fix top level groups including deleted ones.
Browse files Browse the repository at this point in the history
  • Loading branch information
David Read committed Sep 23, 2013
1 parent fafd9f9 commit b7136b8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ckan/model/group.py
Expand Up @@ -229,6 +229,7 @@ def get_top_level_groups(cls, type='group'):
Member.state == 'active')).\
filter(Member.id == None).\
filter(Group.type == type).\
filter(Group.state == 'active').\
order_by(Group.title).all()

def groups_allowed_to_be_its_parent(self, type='group'):
Expand Down

0 comments on commit b7136b8

Please sign in to comment.