Opened 8 months ago

Last modified 8 months ago

#35299 closed Bug

Remove ValueError in Create method with OneToOne relation — at Version 1

Reported by: Oleksandr Zahirnyi Owned by: nobody
Component: Database layer (models, ORM) Version: 5.0
Severity: Normal Keywords: create OneToOne exception
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description (last modified by Oleksandr Zahirnyi)

The issue #34586 was resolved in commit by introducing an Exception. However, as a result of the condition if reverse_one_to_one_fields:, it's currently not possible to create a new row with a OneToOne relationship. In my opinion, the issue should address the part create() does not save reverse OneToOne relationship instead of merely adding the Exception.

Change History (1)

comment:1 by Oleksandr Zahirnyi, 8 months ago

Description: modified (diff)
Note: See TracTickets for help on using tickets.
Back to Top