Skip to content

Commit

Permalink
Adds title to return of organization_list_for_user
Browse files Browse the repository at this point in the history
  • Loading branch information
johnmartin authored and tobes committed Mar 14, 2013
1 parent f63b00b commit 0181870
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ckan/logic/action/get.py
Expand Up @@ -480,7 +480,7 @@ def organization_list_for_user(context, data_dict):

if sysadmin:
# Sysadmins can see all organizations
return [{'id':org.id,'name':org.name} for org in orgs_q.all()]
return [{'id':org.id,'name':org.name,'title':org.title} for org in orgs_q.all()]

permission = data_dict.get('permission', 'edit_group')

Expand All @@ -506,7 +506,7 @@ def organization_list_for_user(context, data_dict):

q = orgs_q.filter(model.Group.id.in_(group_ids))

return [{'id':org.id,'name':org.name} for org in q.all()]
return [{'id':org.id,'name':org.name,'title':org.title} for org in q.all()]

def group_revision_list(context, data_dict):
'''Return a group's revisions.
Expand Down

0 comments on commit 0181870

Please sign in to comment.