Revision f8cac8c7 snf-astakos-app/astakos/im/functions.py

b/snf-astakos-app/astakos/im/functions.py
42 42
from django.db.models import Q
43 43

  
44 44
from synnefo_branding.utils import render_to_string
45
from synnefo.util.keypath import set_path
45 46

  
46 47
from synnefo.lib import join_urls
47 48
from astakos.im.models import AstakosUser, Invitation, ProjectMembership, \
......
1178 1179
    usage = {}
1179 1180
    for user in users:
1180 1181
        uuid = user.uuid
1181
        usage[uuid] = len(apps_d.get(uuid, []))
1182
        set_path(usage,
1183
                 [uuid, user.base_project.uuid, quotas.PENDING_APP_RESOURCE],
1184
                 len(apps_d.get(uuid, [])), createpath=True)
1182 1185
    return usage
1183 1186

  
1184 1187

  

Also available in: Unified diff