Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

"render" shortcut doc fix #33

Merged
merged 1 commit into from

2 participants

@mattdennewitz

Added missing request arg to render() example.

@mattdennewitz mattdennewitz Fixed `render()` syntax example
Added missing `render` arg to `render()` example.
579809b
@jsocol jsocol merged commit c2d04ff into jbalogh:master

1 check passed

Details default The Travis build passed
@jsocol
Collaborator

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jan 19, 2013
  1. @mattdennewitz

    Fixed `render()` syntax example

    mattdennewitz authored
    Added missing `render` arg to `render()` example.
This page is out of date. Refresh to see the latest.
Showing with 2 additions and 2 deletions.
  1. +1 −1  README.rst
  2. +1 −1  docs/index.rst
View
2  README.rst
@@ -36,7 +36,7 @@ your view the same way you'd render Django templates::
def MyView(request):
# TODO: Do something.
context = dict(user_ids=[1, 2, 3, 4])
- render('users/search.html', context)
+ render(request, 'users/search.html', context)
..note::
View
2  docs/index.rst
@@ -36,7 +36,7 @@ your view the same way you'd render Django templates::
def MyView(request):
# TODO: Do something.
context = dict(user_ids=[1, 2, 3, 4])
- render('users/search.html', context)
+ render(request, 'users/search.html', context)
..note::
Something went wrong with that request. Please try again.