Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#26595 closed Uncategorized (fixed)

w.save() is called after w = r.waiter_set.create(name='Joe') in one-to-one relationship

Reported by: shiblystory Owned by: nobody
Component: Documentation Version: 1.9
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description (last modified by shiblystory)

https://docs.djangoproject.com/en/1.9/topics/db/examples/one_to_one/

>>> w = r.waiter_set.create(name='Joe')
>>> w.save()

w.save() should not be called.

I've created pull request: https://github.com/django/django/pull/6568

Change History (3)

comment:1 by shiblystory, 9 years ago

Description: modified (diff)

comment:2 by Tim Graham <timograham@…>, 9 years ago

Resolution: fixed
Status: newclosed

In 6ae617dc:

Fixed #26595 -- Removed unnecessary save() in one_to_one.txt example.

comment:3 by Tim Graham <timograham@…>, 9 years ago

In 219fc1f:

[1.9.x] Fixed #26595 -- Removed unnecessary save() in one_to_one.txt example.

Backport of 6ae617dc57149216d264d3596cdb10a72dad1bca from master

Note: See TracTickets for help on using tickets.
Back to Top