#28557 closed Cleanup/optimization (fixed)
docs label `to` __init__ parameter as `othermodel` for ForeignKey, OneToOneField, ManyToManyField
| Reported by: | Robert Raiford | Owned by: | nobody |
|---|---|---|---|
| Component: | Documentation | Version: | 1.11 |
| Severity: | Normal | Keywords: | |
| Cc: | Triage Stage: | Accepted | |
| Has patch: | yes | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | yes | UI/UX: | no |
Description
The docs for ForeignKey, ManyToManyField and OneToOneField list othermodel as their first parameter, but the sources they link to use to:
https://docs.djangoproject.com/en/1.11/ref/models/fields/#foreignkey
https://docs.djangoproject.com/en/1.11/ref/models/fields/#manytomanyfield
https://docs.djangoproject.com/en/1.11/ref/models/fields/#onetoonefield
This will throw a "missing 1 required positional argument" error for anyone trying to call their constructors with named arguments.
Note:
See TracTickets
for help on using tickets.
PR