Skip to content

Commit

Permalink
Very minor Python formatting change to template documentation
Browse files Browse the repository at this point in the history
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17916 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information
SmileyChris committed Apr 20, 2012
1 parent 718f149 commit a901654
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/ref/templates/api.txt
Original file line number Diff line number Diff line change
Expand Up @@ -744,7 +744,7 @@ automates the process: ``render_to_string()`` in
returns the resulting string::

from django.template.loader import render_to_string
rendered = render_to_string('my_template.html', { 'foo': 'bar' })
rendered = render_to_string('my_template.html', {'foo': 'bar'})

The ``render_to_string`` shortcut takes one required argument --
``template_name``, which should be the name of the template to load
Expand Down

0 comments on commit a901654

Please sign in to comment.