<s> from __future__ import unicode_literals <EOL> from django . db import models <EOL> from djangobmf . models import BMFModel <EOL> from djangobmf . workflow import Workflow <EOL> from djangobmf . workflow import State <EOL> from djangobmf . workflow import Transition <EOL> class TestWorkflow ( Workflow ) : <EOL> class States : <EOL> start = State ( "<STR_LIT:start>" , default = True , delete = False ) <EOL> end = State ( "<STR_LIT:end>" , update = False , delete = True ) <EOL> class Transitions : <EOL> go = Transition ( "<STR_LIT>" , "<STR_LIT:start>" , "<STR_LIT:end>" ) <EOL> class TestView ( BMFModel ) : <EOL> field = models . CharField ( max_length = <NUM_LIT:3> ) <EOL> field_b = models . CharField ( max_length = <NUM_LIT:4> , blank = True , null = True ) <EOL> class BMFMeta : <EOL> has_files = True <EOL> has_comments = True <EOL> observed_fields = [ '<STR_LIT>' , ] <EOL> workflow = TestWorkflow </s>
