def contribute_to_class(self, cls, name):
        super(StateField, self).contribute_to_class(cls, name)
        setattr(cls, self.name, StateFieldProperty(self))
Contribute the state to a Model.
dataset/ETHPy150Open rbarrois/django_xworkflows/django_xworkflows/models.py/StateField.contribute_to_class