Fixed #6331 -- Fixed some typos in shortcuts.txt. Thanks, Herbert Poul.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@7006 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Malcolm Tredinnick 2008-01-09 07:19:56 +00:00
parent 421b03af2c
commit f0b14067db
1 changed files with 2 additions and 2 deletions

View File

@ -94,7 +94,7 @@ This example is equivalent to::
def my_view(request):
try:
my_object = MyModel.object.get(pk=1)
my_object = MyModel.objects.get(pk=1)
except MyModel.DoesNotExist:
raise Http404
@ -136,7 +136,7 @@ This example is equivalent to::
from django.http import Http404
def my_view(request):
my_objects = MyModels.object.filter(published=True)
my_objects = MyModel.objects.filter(published=True)
if not my_objects:
raise Http404