def get_db_prep_value(self, value, connection, prepared=False):
        if not prepared:
            value = self.get_prep_value(value)
        return value.state.name
Called when the window is resized.
dataset/ETHPy150Open rbarrois/django_xworkflows/django_xworkflows/models.py/StateField.get_db_prep_value--crossover with--dataset/ETHPy150Open enthought/pyface/pyface/ui/wx/window.py/Window._wx_on_control_move