#35299: Remove ValueError in Create method with OneToOne relation
-------------------------------------+-------------------------------------
Reporter: ozahirnyi | Owner: nobody
Type: Bug | Status: new
Component: Database | Version: 5.0
layer (models, ORM) | Keywords: create OneToOne
Severity: Normal | exception
Triage Stage: | Has patch: 0
Unreviewed |
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-------------------------------------+-------------------------------------
The issue
[https://code.djangoproject.com/ticket/34586?utm_campaign=Django%2BNewsletter&utm_medium=web&utm_source=Django_Newsletter_193
#34586] was fixed in
[https://github.com/django/django/commit/e02fc588893485e5f5e509cdb67c63d8e1a45b31
commit] by raising an Exception. However, now there is no possibility to
create a new row with a OneToOne relation because of the condition {{{if
reverse_one_to_one_fields:}}}. I believe that the issue must fix this part
{{{create() does not save reverse OneToOne relationship}}}.
--
Ticket URL: <https://code.djangoproject.com/ticket/35299>
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 view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/0107018e387f4c05-ff379270-9720-48be-b963-bd810f3b78d0-000000%40eu-central-1.amazonses.com.