Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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
  • Loading branch information...
commit f0b14067db8f9745a5081e45eb7eaa124a9cc98b 1 parent 421b03a
Malcolm Tredinnick malcolmt authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 docs/shortcuts.txt
4 docs/shortcuts.txt
View
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.