diff options
Diffstat (limited to 'flywheel/emitters.py')
| -rw-r--r-- | flywheel/emitters.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/flywheel/emitters.py b/flywheel/emitters.py index 57e95ec2..f548e1d9 100644 --- a/flywheel/emitters.py +++ b/flywheel/emitters.py @@ -83,16 +83,15 @@ class DocumentingTemplateEmitter(BaseEmitter): provide a form that can be used to submit arbitrary content.""" # Get the form instance if we have one bound to the input form_instance = resource.form_instance - print form_instance # Otherwise if this isn't an error response # then attempt to get a form bound to the response object if not form_instance and resource.response.has_content_body: try: form_instance = resource.get_form(resource.response.raw_content) + if form_instance: + form_instance.is_valid() except: - pass - if form_instance and not form_instance.is_valid(): form_instance = None # If we still don't have a form instance then try to get an unbound form |
