def get_events(request):
    events = []

    query = Q(due_date__isnull=False)
    liabilities = Object.filter_by_request(
        request, manager=Liability.objects.filter(query))
    for liability in liabilities:
        if liability.due_date:
            old = liability.due_date
            new_due_date = datetime.datetime(
                year=old.year, month=old.month, day=old.day, hour=12, minute=0, second=0)
            event = EventRenderer(
                liability.name, None, new_due_date, liability.get_absolute_url())
        event.css_class += " finance-calendar-liability"
        events.append(event)

    return events
Return a list of EventRenderers from available Liability
dataset/ETHPy150Open treeio/treeio/treeio/finance/events.py/get_events