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

Tidy up flake8 errore

parent d3b639b8
No related branches found
No related tags found
No related merge requests found
...@@ -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
......
...@@ -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,
......
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