Add workflow state add and edit views
This commit is contained in:
@@ -3,7 +3,7 @@ from __future__ import absolute_import
|
||||
from django import forms
|
||||
from django.utils.translation import ugettext_lazy as _
|
||||
|
||||
from .models import Workflow, State, Transition
|
||||
from .models import Workflow, State, Transition, WorkflowState
|
||||
|
||||
|
||||
class WorkflowSetupForm(forms.ModelForm):
|
||||
@@ -14,3 +14,8 @@ class WorkflowSetupForm(forms.ModelForm):
|
||||
class StateSetupForm(forms.ModelForm):
|
||||
class Meta:
|
||||
model = State
|
||||
|
||||
|
||||
class WorkflowStateSetupForm(forms.ModelForm):
|
||||
class Meta:
|
||||
model = WorkflowState
|
||||
|
||||
Reference in New Issue
Block a user