@library.global_function
def karma_titles(user):
    # Titles assigned to the user or groups
    return Title.objects.filter(
        Q(users=user) | Q(groups__in=user.groups.all())).distinct()
Return a list of titles for a given user.
dataset/ETHPy150Open mozilla/kitsune/kitsune/karma/templatetags/jinja_helpers.py/karma_titles