#23386: Document that F expressions are reapplied each time an object is saved
--------------------------------------+------------------------------------
     Reporter:  codefisher            |                    Owner:  nobody
         Type:  Cleanup/optimization  |                   Status:  new
    Component:  Documentation         |                  Version:  1.6
     Severity:  Normal                |               Resolution:
     Keywords:                        |             Triage Stage:  Accepted
    Has patch:  0                     |      Needs documentation:  0
  Needs tests:  0                     |  Patch needs improvement:  0
Easy pickings:  0                     |                    UI/UX:  0
--------------------------------------+------------------------------------

Comment (by codefisher):

 You say "Probably a good idea to recommend fetching the object from the
 database after saving in order to get the new value if you are still using
 the object after save()."

 That is already done, at least on the latest dev docs:
 https://docs.djangoproject.com/en/dev/ref/models/queries/#f-expressions

 But the effect of calling save more then once is no where to be seen, and
 really not that expected.

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

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/068.6dd1f538d81a35a48bffe03f778c8ee3%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to