Update the example in the usage section.

- Fix naming convention
- Add missing return statement
This commit is contained in:
Berker Peksag
2013-05-01 13:28:48 +03:00
parent 15cb6d407a
commit 9fe23292f7

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::