def METHOD_NAME(ids):
    models = ('indicatorperiod', 'indicator', 'result', 'project')
    for id_, model in zip(ids, models):
        log_entries = LogEntry.objects\
                              .filter(content_type__model=model, object_id=id_)\
                              .exclude(action_flag=DELETION)\
                              .values_list('user_id', 'action_time')
        count = len(log_entries)
        if count > 0:
            user_id = log_entries[0][0]
            # Use the action_time field to set the created_at and last_modified_at fields in the
            # IndicatorPeriodData object we create later. This is probably the best estimate of
            # when the value was created/added
            timestamp = log_entries[0][1]
            break
        else:
            user_id = None
            timestamp = None
    return user_id, timestamp