Skip to content

Commit

Permalink
Fix bare_field()
Browse files Browse the repository at this point in the history
It was dropping **render_args on the floor.

Also, stop trying to cleverly save three lines of code.
  • Loading branch information
magical committed Jun 30, 2014
1 parent 1d83d3c commit 73eec7c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion spline/templates/lib.mako
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@

<%def name="bare_field(name, form=None, **render_args)">
<% form = form or c.form %>\
${literal_field(form[name])}
${form[name](id=u'', **render_args) | n}
% for error in form[name].errors:
<p class="error">${error}</p>
% endfor
</%def>

<%def name="literal_field(field, **render_args)">
Expand Down

0 comments on commit 73eec7c

Please sign in to comment.