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
0e9a333b
Commit
0e9a333b
authored
7 years ago
by
Todd Dembrey
Browse files
Options
Downloads
Patches
Plain Diff
Tidy up flake8 errore
parent
d3b639b8
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
opentech/apply/blocks.py
+1
-1
1 addition, 1 deletion
opentech/apply/blocks.py
opentech/apply/forms.py
+0
-1
0 additions, 1 deletion
opentech/apply/forms.py
with
1 addition
and
2 deletions
opentech/apply/blocks.py
+
1
−
1
View file @
0e9a333b
...
@@ -2,7 +2,7 @@ from django import forms
...
@@ -2,7 +2,7 @@ from django import forms
from
django.utils.functional
import
cached_property
from
django.utils.functional
import
cached_property
from
django.utils.translation
import
ugettext_lazy
as
_
from
django.utils.translation
import
ugettext_lazy
as
_
from
wagtail.wagtailcore.blocks
import
BooleanBlock
,
ChooserBlock
,
StreamBlock
,
StructBlock
,
StaticBlock
from
wagtail.wagtailcore.blocks
import
BooleanBlock
,
ChooserBlock
from
wagtail.wagtailcore.utils
import
resolve_model_string
from
wagtail.wagtailcore.utils
import
resolve_model_string
from
opentech.stream_forms.blocks
import
FormFieldBlock
,
FormFieldsBlock
from
opentech.stream_forms.blocks
import
FormFieldBlock
,
FormFieldsBlock
...
...
This diff is collapsed.
Click to expand it.
opentech/apply/forms.py
+
0
−
1
View file @
0e9a333b
...
@@ -23,7 +23,6 @@ class WorkflowFormAdminForm(WagtailAdminPageForm):
...
@@ -23,7 +23,6 @@ class WorkflowFormAdminForm(WagtailAdminPageForm):
number_of_stages
=
len
(
workflow
.
stage_classes
)
number_of_stages
=
len
(
workflow
.
stage_classes
)
plural_stage
=
'
s
'
if
number_of_stages
>
1
else
''
plural_stage
=
'
s
'
if
number_of_stages
>
1
else
''
if
number_of_forms
!=
number_of_stages
:
if
number_of_forms
!=
number_of_stages
:
self
.
add_error
(
self
.
add_error
(
None
,
None
,
...
...
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