def get_base_input(test=False):
    """
    Return DateTimeBaseInput class from django.forms.widgets module

    Return _compatibility.DateTimeBaseInput class for older django versions.
    """
    from django.forms.widgets import DateTimeBaseInput
    if 'get_context' in dir(DateTimeBaseInput) and not test:
        base_input = DateTimeBaseInput
    else:
        from bootstrap_datepicker_plus._compatibility import CompatibleDateTimeBaseInput
        base_input = CompatibleDateTimeBaseInput
    return base_input
