I had a bug at my job related with a wrong OneToOne model definition but
when I "googled" it to fix it, I realized there was no example in the
Django documentation: At
https://docs.djangoproject.com/en/4.1/topics/db/examples/ -> One-to-one
relationships is the only one which don't have any example, so I would
like to add one!
''I already created a PR about this but I haven't had feedback, so I
raised this ticket to confirm if its needed, if not I can close the PR''
Thank you!
--
Ticket URL: <https://code.djangoproject.com/ticket/34310>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
Comment (by Marcelo Galigniana):
[https://github.com/django/django/pull/16334 PR]
--
Ticket URL: <https://code.djangoproject.com/ticket/34310#comment:1>
* has_patch: 0 => 1
* type: Uncategorized => Cleanup/optimization
* stage: Unreviewed => Accepted
Comment:
Sounds reasonable.
--
Ticket URL: <https://code.djangoproject.com/ticket/34310#comment:2>
* needs_better_patch: 0 => 1
--
Ticket URL: <https://code.djangoproject.com/ticket/34310#comment:3>
* needs_better_patch: 1 => 0
--
Ticket URL: <https://code.djangoproject.com/ticket/34310#comment:4>
* stage: Accepted => Ready for checkin
--
Ticket URL: <https://code.djangoproject.com/ticket/34310#comment:5>
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"7c6195ef81075b03a704431b5d08ec597e8573f7" 7c6195e]:
{{{
#!CommitTicketReference repository=""
revision="7c6195ef81075b03a704431b5d08ec597e8573f7"
Fixed #34310 -- Added deletion example to one-to-one topic.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/34310#comment:6>
Comment (by Mariusz Felisiak <felisiak.mariusz@…>):
In [changeset:"9306a8d18fb155519389bb79a34a35ba578e21ec" 9306a8d]:
{{{
#!CommitTicketReference repository=""
revision="9306a8d18fb155519389bb79a34a35ba578e21ec"
[4.2.x] Fixed #34310 -- Added deletion example to one-to-one topic.
Backport of 7c6195ef81075b03a704431b5d08ec597e8573f7 from main
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/34310#comment:7>