Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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 authored January 09, 2008

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. 4  docs/shortcuts.txt
4  docs/shortcuts.txt
@@ -94,7 +94,7 @@ This example is equivalent to::
94 94
 
95 95
     def my_view(request):
96 96
         try:
97  
-            my_object = MyModel.object.get(pk=1)
  97
+            my_object = MyModel.objects.get(pk=1)
98 98
         except MyModel.DoesNotExist:
99 99
             raise Http404
100 100
 
@@ -136,7 +136,7 @@ This example is equivalent to::
136 136
     from django.http import Http404
137 137
 
138 138
     def my_view(request):
139  
-        my_objects = MyModels.object.filter(published=True)
  139
+        my_objects = MyModel.objects.filter(published=True)
140 140
         if not my_objects:
141 141
             raise Http404
142 142
 

0 notes on commit f0b1406

Please sign in to comment.
Something went wrong with that request. Please try again.