#35299: Remove ValueError in Create method with OneToOne relation
-------------------------------------+-------------------------------------
     Reporter:  ozahirnyi            |                    Owner:  nobody
         Type:  Bug                  |                   Status:  new
    Component:  Database layer       |                  Version:  5.0
  (models, ORM)                      |
     Severity:  Normal               |               Resolution:
     Keywords:  create OneToOne      |             Triage Stage:
  exception                          |  Unreviewed
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Description changed by ozahirnyi:

Old description:

> 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}}}.

New description:

 The issue
 
[https://code.djangoproject.com/ticket/34586?utm_campaign=Django%2BNewsletter&utm_medium=web&utm_source=Django_Newsletter_193
 #34586] was resolved in
 
[https://github.com/django/django/commit/e02fc588893485e5f5e509cdb67c63d8e1a45b31
 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.

--
-- 
Ticket URL: <https://code.djangoproject.com/ticket/35299#comment:1>
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 django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/0107018e38806515-ed314f68-ec45-4c41-a738-48dac20022a9-000000%40eu-central-1.amazonses.com.

Reply via email to