Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #11419 -- Corrected a minor typo in the admin docs. Thanks to j…

…speis for the report.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@11176 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit b96e55e811aadda25f190878d5c30d0ac745f810 1 parent 36954a0
Russell Keith-Magee authored July 03, 2009

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  docs/ref/contrib/admin/index.txt
2  docs/ref/contrib/admin/index.txt
@@ -794,7 +794,7 @@ return a subset of objects for this foreign key field based on the user::
794 794
     class MyModelAdmin(admin.ModelAdmin):
795 795
         def formfield_for_foreignkey(self, db_field, request, **kwargs):
796 796
             if db_field.name == "car":
797  
-                kwargs["queryset"] = Car.object.filter(owner=request.user)
  797
+                kwargs["queryset"] = Car.objects.filter(owner=request.user)
798 798
                 return db_field.formfield(**kwargs)
799 799
             return super(MyModelAdmin, self).formfield_for_foreignkey(db_field, request, **kwargs)
800 800
 

0 notes on commit b96e55e

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