<filename>plans/quota.py<gh_stars>100-1000
def get_user_quota(user):
    """
    Tiny helper for getting quota dict for user
    If user has expired plan, return default plan or None
    """
    from .models import Plan
    plan = Plan.get_current_plan(user)
    return plan.get_quota_dict()

<filename>plans/quota.py<gh_stars>100-1000
def get_user_quota(user):
    """
    Tiny helper for getting quota dict for user
    If user has expired plan, return default plan or None
    """
    from .models import Plan
    plan = Plan.get_current_plan(user)
    return plan.get_quota_dict()

Tiny helper for getting quota dict for user     If user has expired plan, return default plan or None