Opened 12 years ago

Closed 12 years ago

#11083 closed (invalid)

BackwardsIncompatibleChanges page does not mention OneToOneField change

Reported by: Andy Durdin Owned by: nobody
Component: Uncategorized Version:
Severity: Keywords: wiki
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no


After queryset-refactor, OneToOneFields are no longer automatically the primary key of a model. To make older code work post-queryset-refactor, the keyword argument primary_key=True must be added to the field instantiation.

I would have updated the wiki page, but do not appear to have permissions to edit it.

Change History (1)

comment:1 Changed 12 years ago by Alex Gaynor

Resolution: invalid
Status: newclosed It's mentioned on the page linked here, just like the note says.

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