Add the workflow state transition edit view

This commit is contained in:
Roberto Rosario
2012-03-19 16:41:34 -04:00
parent 55a6720a84
commit 50ad0d9bf6
4 changed files with 28 additions and 18 deletions

View File

@@ -67,7 +67,6 @@ class WorkflowState(models.Model):
description = models.TextField(blank=True, verbose_name=_(u'description'))
def __unicode__(self):
#return '%s (%s)' % (self.label, self.workflow.label)
return unicode(self.state)
@property
@@ -75,6 +74,7 @@ class WorkflowState(models.Model):
return self.workflowstatetransition_set
class Meta:
#unique_together = ('workflow', 'state')
verbose_name = _(u'workflow state')
verbose_name_plural = _(u'workflows states')