def instances_for_export(data_dictionary, start=None, end=None):
    """
    Returns Instance submission queryset filtered by start and end dates.
    """
    kwargs = dict()
    if start:
        kwargs['date_created__gte'] = start
    if end:
        kwargs['date_created__lte'] = end

    return data_dictionary.instances.filter(**kwargs)