Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
hypha
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ots
hypha
Commits
a8fdc78b
Commit
a8fdc78b
authored
7 years ago
by
Todd Dembrey
Browse files
Options
Downloads
Patches
Plain Diff
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
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
opentech/apply/funds/models.py
+2
-3
2 additions, 3 deletions
opentech/apply/funds/models.py
with
2 additions
and
3 deletions
opentech/apply/funds/models.py
+
2
−
3
View file @
a8fdc78b
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment