Skip to content
Snippets Groups Projects
Commit a8fdc78b authored by Todd Dembrey's avatar Todd Dembrey
Browse files

Move the base_form_class back to where it was

parent 8eb3343f
No related branches found
No related tags found
No related merge requests found
...@@ -27,6 +27,8 @@ class FundType(AbstractStreamForm): ...@@ -27,6 +27,8 @@ class FundType(AbstractStreamForm):
parent_page_types = ['apply_home.ApplyHomePage'] parent_page_types = ['apply_home.ApplyHomePage']
subpage_types = ['funds.Round'] subpage_types = ['funds.Round']
base_form_class = WorkflowFormAdminForm
WORKFLOWS = { WORKFLOWS = {
'single': SingleStage.name, 'single': SingleStage.name,
'double': DoubleStage.name, 'double': DoubleStage.name,
...@@ -34,9 +36,6 @@ class FundType(AbstractStreamForm): ...@@ -34,9 +36,6 @@ class FundType(AbstractStreamForm):
workflow = models.CharField(choices=WORKFLOWS.items(), max_length=100, default='single') workflow = models.CharField(choices=WORKFLOWS.items(), max_length=100, default='single')
base_form_class = WorkflowFormAdminForm
def get_defined_fields(self): def get_defined_fields(self):
# Only return the first form, will need updating for when working with 2 stage WF # Only return the first form, will need updating for when working with 2 stage WF
return self.forms.all()[0].fields return self.forms.all()[0].fields
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment