Rename content to template content

WTForms sets the `id` of a `textarea` element to the variable name to which the
form control is assigned.

This conflicts with the page container, which is styled by targeting `#content`.
This commit is contained in:
Chris Hill-Scott
2016-01-22 12:15:47 +00:00
parent 48c0ae0140
commit 9ee8610da0
4 changed files with 7 additions and 5 deletions

View File

@@ -62,7 +62,7 @@ def test_should_redirect_when_saving_a_template(app_,
'id': template_id,
'name': name,
'template_type': type_,
"content": content,
"template_content": content,
"service": service_id
}
response = client.post(url_for(