[Django] #36237: Mention in the docs that save and create are not always equal.

9 views
Skip to first unread message

Django

unread,
Mar 8, 2025, 8:45:49 AM3/8/25
to django-...@googlegroups.com
#36237: Mention in the docs that save and create are not always equal.
-------------------------+-----------------------------------------
Reporter: mmarras | Type: Uncategorized
Status: new | Component: Documentation
Version: 5.1 | Severity: Normal
Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------+-----------------------------------------
https://docs.djangoproject.com/en/5.1/ref/models/querysets/#create

Explicitly states that "save" and "create" are equal, but if you have
signals (post-save or pre-save), that is no longer true. Maybe a reference
to signals there might be helpful. At least in my mind, equivalent
suggestes unconditional equivalency at all times.
--
Ticket URL: <https://code.djangoproject.com/ticket/36237>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Mar 8, 2025, 8:49:43 AM3/8/25
to django-...@googlegroups.com
#36237: Mention in the docs that save and create are not always equal.
-------------------------------+--------------------------------------
Reporter: mmarras | Owner: (none)
Type: Uncategorized | Status: closed
Component: Documentation | Version: 5.1
Severity: Normal | Resolution: invalid
Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+--------------------------------------
Changes (by mmarras):

* resolution: => invalid
* status: new => closed


Old description:

> https://docs.djangoproject.com/en/5.1/ref/models/querysets/#create
>
> Explicitly states that "save" and "create" are equal, but if you have
> signals (post-save or pre-save), that is no longer true. Maybe a
> reference to signals there might be helpful. At least in my mind,
> equivalent suggestes unconditional equivalency at all times.

New description:

nvm

--
--
Ticket URL: <https://code.djangoproject.com/ticket/36237#comment:1>
Reply all
Reply to author
Forward
0 new messages