'Returns organization list as json.'

@method_decorator(login_required)
def get(self, request, *args, **kwargs):

    organizations = get_organizations()
    org_names_list = [org['short_name'] for org in organizations]
    return HttpResponse(dump_js_escaped_json(org_names_list), content_type='application/json;    charset=utf-8')
