Skip to content

Commit

Permalink
Don't use single quotes in jinja templates
Browse files Browse the repository at this point in the history
It confuses something somewhere along the way, the single quotes end up
as part of the string content rather than denoting the start and end of
the string, was causing dictization errors when submitting the
organization form using paste.fixture.TestApp (but not when submitting
it using a web browser)
  • Loading branch information
Sean Hammond committed Sep 13, 2012
1 parent 3bf4062 commit 1ec3ef7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
{% set attrs = {'data-module': 'slug-preview-target'} %}
{{ form.input('title', label=_('Title'), id='field-title', placeholder=_('My Organization'), value=data.title, error=errors.title, classes=['control-full'], attrs=attrs) }}

<input type='hidden' name='id' id='id' value="{{data.get('id')}}">
<input type="hidden" name="id" id="id" value="{{data.get('id')}}">

{# Perhaps these should be moved into the controller? #}
{% set prefix = h.url_for(controller='organization', action='read', id='') %}
Expand Down

0 comments on commit 1ec3ef7

Please sign in to comment.