#30326: Document how to avoid F() assignments persistence
-------------------------------------+-------------------------------------
               Reporter:  sage       |          Owner:  nobody
                   Type:             |         Status:  new
  Cleanup/optimization               |
              Component:             |        Version:  master
  Documentation                      |       Keywords:  documentation,
               Severity:  Normal     |  models, expressions
           Triage Stage:             |      Has patch:  0
  Unreviewed                         |
    Needs documentation:  0          |    Needs tests:  0
Patch needs improvement:  0          |  Easy pickings:  1
                  UI/UX:  0          |
-------------------------------------+-------------------------------------
 In `F()` expressions documentation, it nicely explains that
 [https://docs.djangoproject.com/en/2.1/ref/models/expressions/#f
 -assignments-persist-after-model-save F() assignments persist after
 Model.save()]. However, it does not explain how to avoid this persistence
 after we're done using the expression (which can be done by reloading the
 object). I think it'll be helpful to add this information in the docs.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/30326>
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/052.9309c01685311fcf4112afd64dc7088d%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to