doc/book/devrepo/datamodel/define-workflows.rst
changeset 12404 83d7752af56a
parent 11963 64ecd4d96ac7
child 12732 7e6aafa089d2
equal deleted inserted replaced
12403:d901fc62eb01 12404:83d7752af56a
    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