def south_field_triple(self):
        from south.modelsinspector import introspector
        args, kwargs = introspector(self)

        state_def = tuple(
            (str(st.name), str(st.name)) for st in self.workflow.states)
        initial_state_def = str(self.workflow.initial_state.name)

        workflow = (
            "__import__('xworkflows', globals(), locals()).base.WorkflowMeta("
            "'%(class_name)s', (), "
            "{'states': %(states)r, 'initial_state': %(initial_state)r})" % {
                'class_name': str(self.workflow.__class__.__name__),
                'states': state_def,
                'initial_state': initial_state_def,
            })
        kwargs['workflow'] = workflow

        return ('django_xworkflows.models.StateField', args, kwargs)
Return a suitable description of this field for South.
dataset/ETHPy150Open rbarrois/django_xworkflows/django_xworkflows/models.py/StateField.south_field_triple