[Django] #25008: New value should be replaced with F() Object after save method is called

8 views
Skip to first unread message

Django

unread,
Jun 19, 2015, 3:00:50 PM6/19/15
to django-...@googlegroups.com
#25008: New value should be replaced with F() Object after save method is called
----------------------------------------------+----------------------
Reporter: aykut | Owner: nobody
Type: New feature | Status: new
Component: Database layer (models, ORM) | Version: master
Severity: Normal | Keywords: F Object
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
----------------------------------------------+----------------------
It is dirty and annoying to reload the new object, every time `F()` is
used.

So replacing fields expressed by `F()` with the updated values just like
having `id` when you create objects, would be very useful.

I think it will be possible on Oracle and PostgreSQL, since only they
support `RETURNING`. However it is still a cool feature to have.

--
Ticket URL: <https://code.djangoproject.com/ticket/25008>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Jun 19, 2015, 3:07:21 PM6/19/15
to django-...@googlegroups.com
#25008: Replace F() Object with updated value after save method is called
-------------------------------------+-------------------------------------

Reporter: aykut | Owner: nobody
Type: New feature | Status: new
Component: Database layer | Version: master
(models, ORM) |
Severity: Normal | Resolution:

Keywords: F Object | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

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

* needs_docs: => 0
* needs_better_patch: => 0
* needs_tests: => 0


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

Django

unread,
Jun 19, 2015, 3:11:35 PM6/19/15
to django-...@googlegroups.com
#25008: Replace F() Object with updated value after save method is called
-------------------------------------+-------------------------------------
Reporter: aykut | Owner: nobody
Type: New feature | Status: closed

Component: Database layer | Version: master
(models, ORM) |
Severity: Normal | Resolution: duplicate

Keywords: F Object | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

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

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


Comment:

Duplicate of #23386

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

Reply all
Reply to author
Forward
0 new messages