Opened 14 hours ago

#36077 assigned Cleanup/optimization

Incorrect mention of falsey primary key values in save() documentation

Reported by: Jacob Walls Owned by: Jacob Walls
Component: Documentation Version: 5.1
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

This sentence in the description of save() is outdated since c2ba59fc1da5287d6286e2c2aca4083d5bafe056. We only consider a pk set if it's not None, as opposed to the empty string (before that commit) nor other falsey values like 0 (since forever, AFAICT).

PR

Found during PR discussion

Change History (0)

Note: See TracTickets for help on using tickets.
Back to Top