def __setstate__(self, state): """ load the config when we're loaded from the database """ MailHost.__setstate__(self, state) self._load_config()