Code

Ticket #9914: manytomany-typo.diff

File manytomany-typo.diff, 510 bytes (added by timo, 5 years ago)
Line 
1Index: docs/topics/db/models.txt
2===================================================================
3--- docs/topics/db/models.txt   (revision 10002)
4+++ docs/topics/db/models.txt   (working copy)
5@@ -866,7 +866,7 @@
6 name will end up being different. For example::
7 
8     class Base(models.Model):
9-        m2m = models.ManyToMany(OtherModel, related_name="%(class)s_related")
10+        m2m = models.ManyToManyField(OtherModel, related_name="%(class)s_related")
11 
12         class Meta:
13             abstract = True