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.
17 lines
429 B
Python
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)
|