#28557: docs label `to` __init__ parameter as `othermodel` for ForeignKey,
OneToOneField, ManyToManyField
------------------------------------------------+------------------------
Reporter: Robert Raiford | Owner: nobody
Type: Cleanup/optimization | Status: new
Component: Documentation | Version: 1.11
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 1
UI/UX: 0 |
------------------------------------------------+------------------------
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.
--
Ticket URL: <https://code.djangoproject.com/ticket/28557>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/048.3d0be1353545a35a508ca3201d89b6a8%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.