Merge pull request #38 from berkerpeksag/patch-1

Update the example in the usage section.
This commit is contained in:
Dave Dash
2013-05-01 07:51:32 -07:00

View File

@@ -33,10 +33,9 @@ your view the same way you'd render Django templates::
from django.shortcuts import render
def MyView(request):
# TODO: Do something.
context = dict(user_ids=[1, 2, 3, 4])
render(request, 'users/search.html', context)
def my_view(request):
context = dict(user_ids=(1, 2, 3, 4))
return render(request, 'users/search.html', context)
.. note::