diff --git a/docs/topics/db/models.txt b/docs/topics/db/models.txt
index 682db34..c19893f 100644
a
|
b
|
as in the above example. However, this uses up the name that is the
|
1066 | 1066 | default :attr:`~django.db.models.ForeignKey.related_name` value for |
1067 | 1067 | :class:`~django.db.models.ForeignKey` and |
1068 | 1068 | :class:`~django.db.models.ManyToManyField` relations. If you |
1069 | | are putting those types of relations on a subclass of another model, |
1070 | | you **must** specify the |
1071 | | :attr:`~django.db.models.ForeignKey.related_name` attribute on each |
1072 | | such field. If you forget, Django will raise an error when you run |
1073 | | :djadmin:`check` or :djadmin:`migrate`. |
| 1069 | are putting those types of relations on a subclass of the parent model, you |
| 1070 | **must** specify the :attr:`~django.db.models.ForeignKey.related_name` |
| 1071 | attribute on each such field. If you forget, Django will raise a validation |
| 1072 | error. |
1074 | 1073 | |
1075 | 1074 | For example, using the above ``Place`` class again, let's create another |
1076 | 1075 | subclass with a :class:`~django.db.models.ManyToManyField`:: |
1077 | 1076 | |
1078 | 1077 | class Supplier(Place): |
1079 | | # Must specify related_name on all relations. |
1080 | | customers = models.ManyToManyField(Restaurant, related_name='provider') |
| 1078 | customers = models.ManyToManyField(Place) |
1081 | 1079 | |
| 1080 | This results in the error:: |
| 1081 | |
| 1082 | Reverse query name for 'Supplier.customers' clashes with reverse query |
| 1083 | name for 'Supplier.place_ptr'. |
| 1084 | |
| 1085 | HINT: Add or change a related_name argument to the definition for |
| 1086 | 'Supplier.customers' or 'Supplier.place_ptr'. |
| 1087 | |
| 1088 | Adding ``related_name`` to the ``customers`` field as follows would resolve the |
| 1089 | error: ``models.ManyToManyField(Place, related_name='provider')``. |
1082 | 1090 | |
1083 | 1091 | Specifying the parent link field |
1084 | 1092 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |