#18638: Reverse OneToOne relationship does not save properly.
-------------------------------------+-------------------------------------
Reporter: David Hatch | Owner: nobody
Type: New feature | Status: closed
Component: Database layer | Version: 1.4
(models, ORM) |
Severity: Normal | Resolution: wontfix
Keywords: | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by NKSM):
Replying to [comment:5 Aymeric Augustin]:
> You're seeing the expected behavior. You'd need to call `tag.save()`.
>
> The API for 1-to-1 relationships isn't totally symmetrical -- after all
it isn't at the SQL level.
This should be documented here:
https://docs.djangoproject.com/en/dev/topics/db/examples/one_to_one/.
The way it is now described is confusing.
--
Ticket URL: <https://code.djangoproject.com/ticket/18638#comment:8>
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/01070187c2ac237f-4b10287c-fa40-4433-9401-864fcd693357-000000%40eu-central-1.amazonses.com.