magic-removal: Oops.. this should have been committed in [1916].
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@1920 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
5aa3c38b1b
commit
02f03e7b93
|
@ -50,7 +50,7 @@ So let's create a ``vote()`` function in ``myproject/polls/views.py``::
|
|||
|
||||
from django.core.extensions import get_object_or_404, render_to_response
|
||||
from django.models.polls import choices, polls
|
||||
from django.utils.httpwrappers import HttpResponseRedirect
|
||||
from django.http import HttpResponseRedirect
|
||||
|
||||
def vote(request, poll_id):
|
||||
p = get_object_or_404(polls, pk=poll_id)
|
||||
|
|
Loading…
Reference in New Issue