[Django] #34310: Add deletion example at one_to_one relations documentation

2 views
Skip to first unread message

Django

unread,
Feb 3, 2023, 12:05:53 PM2/3/23
to django-...@googlegroups.com
#34310: Add deletion example at one_to_one relations documentation
-------------------------------------+-------------------------------------
Reporter: Marcelo | Owner: Marcelo Galigniana
Galigniana |
Type: | Status: assigned
Uncategorized |
Component: | Version: 4.1
Documentation |
Severity: Normal | Keywords:
Triage Stage: | Has patch: 0
Unreviewed |
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-------------------------------------+-------------------------------------
Hello!

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.

Django

unread,
Feb 3, 2023, 12:06:46 PM2/3/23
to django-...@googlegroups.com
#34310: Add deletion example at one_to_one relations documentation
-------------------------------------+-------------------------------------
Reporter: Marcelo Galigniana | Owner: Marcelo
| Galigniana
Type: Uncategorized | Status: assigned
Component: Documentation | Version: 4.1
Severity: Normal | Resolution:
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 Marcelo Galigniana):

[https://github.com/django/django/pull/16334 PR]

--
Ticket URL: <https://code.djangoproject.com/ticket/34310#comment:1>

Django

unread,
Feb 3, 2023, 1:27:08 PM2/3/23
to django-...@googlegroups.com
#34310: Add deletion example at one_to_one relations documentation
-------------------------------------+-------------------------------------
Reporter: Marcelo Galigniana | Owner: Marcelo
Type: | Galigniana
Cleanup/optimization | Status: assigned

Component: Documentation | Version: 4.1
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Mariusz Felisiak):

* has_patch: 0 => 1
* type: Uncategorized => Cleanup/optimization
* stage: Unreviewed => Accepted


Comment:

Sounds reasonable.

--
Ticket URL: <https://code.djangoproject.com/ticket/34310#comment:2>

Django

unread,
Feb 6, 2023, 2:38:35 AM2/6/23
to django-...@googlegroups.com
#34310: Add deletion example at one_to_one relations documentation
-------------------------------------+-------------------------------------
Reporter: Marcelo Galigniana | Owner: Marcelo
Type: | Galigniana
Cleanup/optimization | Status: assigned
Component: Documentation | Version: 4.1
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1

Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Mariusz Felisiak):

* needs_better_patch: 0 => 1


--
Ticket URL: <https://code.djangoproject.com/ticket/34310#comment:3>

Django

unread,
Feb 7, 2023, 12:32:07 AM2/7/23
to django-...@googlegroups.com
#34310: Add deletion example at one_to_one relations documentation
-------------------------------------+-------------------------------------
Reporter: Marcelo Galigniana | Owner: Marcelo
Type: | Galigniana
Cleanup/optimization | Status: assigned
Component: Documentation | Version: 4.1
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Marcelo Galigniana):

* needs_better_patch: 1 => 0


--
Ticket URL: <https://code.djangoproject.com/ticket/34310#comment:4>

Django

unread,
Feb 7, 2023, 1:05:35 AM2/7/23
to django-...@googlegroups.com
#34310: Add deletion example at one_to_one relations documentation
-------------------------------------+-------------------------------------
Reporter: Marcelo Galigniana | Owner: Marcelo
Type: | Galigniana
Cleanup/optimization | Status: assigned
Component: Documentation | Version: 4.1
Severity: Normal | Resolution:
Keywords: | Triage Stage: Ready for
| checkin

Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Mariusz Felisiak):

* stage: Accepted => Ready for checkin


--
Ticket URL: <https://code.djangoproject.com/ticket/34310#comment:5>

Django

unread,
Feb 7, 2023, 2:04:36 AM2/7/23
to django-...@googlegroups.com
#34310: Add deletion example at one_to_one relations documentation
-------------------------------------+-------------------------------------
Reporter: Marcelo Galigniana | Owner: Marcelo
Type: | Galigniana
Cleanup/optimization | Status: closed
Component: Documentation | Version: 4.1
Severity: Normal | Resolution: fixed

Keywords: | Triage Stage: Ready for
| checkin
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by GitHub <noreply@…>):

* 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>

Django

unread,
Feb 7, 2023, 2:05:44 AM2/7/23
to django-...@googlegroups.com
#34310: Add deletion example at one_to_one relations documentation
-------------------------------------+-------------------------------------
Reporter: Marcelo Galigniana | Owner: Marcelo
Type: | Galigniana
Cleanup/optimization | Status: closed
Component: Documentation | Version: 4.1
Severity: Normal | Resolution: fixed
Keywords: | Triage Stage: Ready for
| checkin
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------

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>

Reply all
Reply to author
Forward
0 new messages