Revision 948e15bc snf-astakos-app/astakos/im/quotas.py
b/snf-astakos-app/astakos/im/quotas.py | ||
---|---|---|
34 | 34 |
from astakos.im.models import ( |
35 | 35 |
Resource, AstakosUserQuota, AstakosUser, |
36 | 36 |
Project, ProjectMembership, ProjectResourceGrant, ProjectApplication) |
37 |
from astakos.quotaholder.callpoint import QuotaholderDjangoDBCallpoint
|
|
37 |
import astakos.quotaholder.callpoint as qh
|
|
38 | 38 |
from django.db.models import Q |
39 | 39 |
|
40 |
qh = QuotaholderDjangoDBCallpoint() |
|
41 |
|
|
42 | 40 |
|
43 | 41 |
def from_holding(holding): |
44 | 42 |
limit, imported_min, imported_max = holding |
Also available in: Unified diff