1. Transcity
  2. Untitled project
  3. django_workflows

Commits

Peter Wright  committed 5b750ec

Included the workflow name in ‘Transition.__unicode__’.

  • Participants
  • Parent commits 10c76a2
  • Branches default

Comments (0)

Files changed (1)

File workflows/models.py

View file
  • Ignore whitespace
                 )
 
     def __unicode__(self):
-        return self.name
+        return "%s (%s)" % (self.name, self.workflow.name)
 
     def check_conditions(self, obj):
         """ Return True if all linked conditions pass for ‘obj’. """