mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
Fixed #14774 -- the test client and assertNumQueries didn't work well together. Thanks to Jonas Obrist for the initial patch.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@15251 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
7
tests/regressiontests/test_utils/views.py
Normal file
7
tests/regressiontests/test_utils/views.py
Normal file
@@ -0,0 +1,7 @@
|
||||
from django.http import HttpResponse
|
||||
from django.shortcuts import get_object_or_404
|
||||
from models import Person
|
||||
|
||||
def get_person(request, pk):
|
||||
person = get_object_or_404(Person, pk=pk)
|
||||
return HttpResponse(person.name)
|
||||
Reference in New Issue
Block a user