@register.filter(name='djstripe_plan_level')
def djstripe_plan_level(name):
    level = -1
    for config_level in djstripe_settings.PLAN_HIERARCHY.values():
        if name in config_level["plans"]:
            level = config_level["level"]

    return level
Add support to levels over plans, then you can have different kind of plans with the level same access.
dataset/ETHPy150Open pydanny/dj-stripe/djstripe/templatetags/djstripe_tags.py/djstripe_plan_level