Files
edx-platform/common/djangoapps/entitlements/api.py
Kyle McCormick 9aefd6f986 style: django-not-configured is not a sensible lint-amnesty value (#26862)
django-not-configured is an error raised by pylint (with
the pylint-django plugin) when it's not correctly configured.

We should not be applying lint amnesty for such a violation.
2021-03-05 08:11:58 -05:00

17 lines
429 B
Python

"""
Python APIs exposed by the Entitlements app to other in-process apps.
"""
from .models import CourseEntitlement as _CourseEntitlement
def get_active_entitlement_list_for_user(user):
"""
Arguments:
user (User): The user we are looking at the entitlements of.
Returns:
List: Active entitlements for the provided User.
"""
return _CourseEntitlement.get_active_entitlements_for_user(user)