Author: russellm
Date: 2009-07-03 09:10:35 -0500 (Fri, 03 Jul 2009)
New Revision: 11176

Modified:
   django/trunk/docs/ref/contrib/admin/index.txt
Log:
Fixed #11419 -- Corrected a minor typo in the admin docs. Thanks to jspeis for 
the report.

Modified: django/trunk/docs/ref/contrib/admin/index.txt
===================================================================
--- django/trunk/docs/ref/contrib/admin/index.txt       2009-07-03 14:09:04 UTC 
(rev 11175)
+++ django/trunk/docs/ref/contrib/admin/index.txt       2009-07-03 14:10:35 UTC 
(rev 11176)
@@ -794,7 +794,7 @@
     class MyModelAdmin(admin.ModelAdmin):
         def formfield_for_foreignkey(self, db_field, request, **kwargs):
             if db_field.name == "car":
-                kwargs["queryset"] = Car.object.filter(owner=request.user)
+                kwargs["queryset"] = Car.objects.filter(owner=request.user)
                 return db_field.formfield(**kwargs)
             return super(MyModelAdmin, 
self).formfield_for_foreignkey(db_field, request, **kwargs)
 


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to