

def get_db_prep_save(self, value):
    "Returns field's value prepared for saving into a database."
    if (value is not None):
        if (value.tzinfo is None):
            value = default_tz.localize(value)
        else:
            value = value.astimezone(default_tz)
    return super(LocalizedDateTimeField, self).get_db_prep_save(self)

dataset/ETHPy150Open davemerwin/blue-channel/external_apps/timezones/fields.py LocalizedDateTimeField.get_db_prep_save/VarMisuse@70/108 `value`->`self`