#20243 closed Bug (fixed)
Related object reference - remove() method
Reported by: | Owned by: | nobody | |
---|---|---|---|
Component: | Documentation | Version: | 1.5 |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | yes | UI/UX: | no |
Description
The documentation for RelatedManager.remove() states:
In order to prevent database inconsistency, this method only exists on ForeignKey objects where null=True.
This statement is misleading as it can be taken to mean that the method only exists for ForeignKey objects for which null is true. I think the statement should read:
For ForeignKey objects, this method only exists if null=True.
The comment about database inconsistency is only stating the obvious.
Note:
See TracTickets
for help on using tickets.
In 712a7927139e3abf9532d73bc88d35e0ebb3a022: