doc/book/devrepo/datamodel/define-workflows.rst
branch3.26
changeset 12469 f5f1db1e6872
parent 11963 64ecd4d96ac7
child 12732 7e6aafa089d2
equal deleted inserted replaced
12468:3c66259723d9 12469:f5f1db1e6872
    65 To define a workflow for BlogDemo, please add the following lines
    65 To define a workflow for BlogDemo, please add the following lines
    66 to ``migration/postcreate.py``:
    66 to ``migration/postcreate.py``:
    67 
    67 
    68 .. sourcecode:: python
    68 .. sourcecode:: python
    69 
    69 
    70   _ = unicode
    70   from cubicweb import _
       
    71 
    71 
    72 
    72   moderators = add_entity('CWGroup', name=u"moderators")
    73   moderators = add_entity('CWGroup', name=u"moderators")
    73 
    74 
    74 This adds the `moderators` user group.
    75 This adds the `moderators` user group.
    75 
    76