Class description

Base

class django_choices_flow.base.MetaChoice(*args, **kwargs)
  • Convert attributes to Tuples
  • Add interator in class attributes
error_msg

get default error message

validate(status, new_status)

Validate workflow

Models

class django_choices_flow.models.FlowCharField(*args, **kwargs)

Custom CharField with workflow validation

static get_db_value(model_instance)

Get database value

validate(value, model_instance)

Validate choice workflow

class django_choices_flow.models.FlowIntegerField(verbose_name=None, name=None, primary_key=False, max_length=None, unique=False, blank=False, null=False, db_index=False, rel=None, default=<class django.db.models.fields.NOT_PROVIDED at 0x31cf120>, editable=True, serialize=True, unique_for_date=None, unique_for_month=None, unique_for_year=None, choices=None, help_text=u'', db_column=None, db_tablespace=None, auto_created=False, validators=[], error_messages=None)

Custom IntegerField with workflow validation

static get_db_value(model_instance)

Get database value

validate(value, model_instance)

Validate choice workflow