

def get_db_prep_lookup(self, lookup_type, value):
    "Returns field's value prepared for database lookup."
    if (value.tzinfo is None):
        value = default_tz.localize(value)
    else:
        value = value.astimezone(default_tz)
    return super(LocalizedDateTimeField, self).get_db_prep_lookup(lookup_type, value)

dataset/ETHPy150Open davemerwin/blue-channel/external_apps/timezones/fields.py LocalizedDateTimeField.get_db_prep_lookup/original