Opened 10 years ago

Closed 10 years ago

#25008 closed New feature (duplicate)

Replace F() Object with updated value after save method is called

Reported by: Aykut Özat Owned by: nobody
Component: Database layer (models, ORM) Version: dev
Severity: Normal Keywords: F Object
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

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.

Change History (2)

comment:1 by Aykut Özat, 10 years ago

Summary: New value should be replaced with F() Object after save method is calledReplace F() Object with updated value after save method is called

comment:2 by Tim Graham, 10 years ago

Resolution: duplicate
Status: newclosed

Duplicate of #23386

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