Przeglądaj źródła

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

Nimesh Ghelani 12 lat temu
rodzic
commit
485c024567
1 zmienionych plików z 1 dodań i 1 usunięć
  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()