Browse Source

Fixed #20150 -- Fixed an error in manager doc example

Nimesh Ghelani 12 years ago
parent
commit
485c024567
1 changed files with 1 additions and 1 deletions
  1. 1 1
      docs/topics/db/managers.txt

+ 1 - 1
docs/topics/db/managers.txt

@@ -85,7 +85,7 @@ returns a list of all ``OpinionPoll`` objects, each with an extra
         objects = PollManager()
 
     class Response(models.Model):
-        poll = models.ForeignKey(Poll)
+        poll = models.ForeignKey(OpinionPoll)
         person_name = models.CharField(max_length=50)
         response = models.TextField()