Fixed #9914 -- Fixed field class name in models docs, patch from timo.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@10200 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
8ed6b2b1d1
commit
1e214534e7
|
@ -871,7 +871,7 @@ that the field is used in. Since each class has a different name, each related
|
||||||
name will end up being different. For example::
|
name will end up being different. For example::
|
||||||
|
|
||||||
class Base(models.Model):
|
class Base(models.Model):
|
||||||
m2m = models.ManyToMany(OtherModel, related_name="%(class)s_related")
|
m2m = models.ManyToManyField(OtherModel, related_name="%(class)s_related")
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
abstract = True
|
abstract = True
|
||||||
|
|
Loading…
Reference in New Issue