#27048: Document that refresh_from_db() doesn't clear @cached_properties
-------------------------------------+-------------------------------------
     Reporter:  jarekwg              |                    Owner:  nobody
         Type:                       |                   Status:  new
  Cleanup/optimization               |
    Component:  Documentation        |                  Version:  master
     Severity:  Normal               |               Resolution:
     Keywords:  cached_property      |             Triage Stage:  Accepted
  refresh_from_db                    |
    Has patch:  1                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Changes (by timgraham):

 * needs_better_patch:   => 0
 * component:  Core (Cache system) => Documentation
 * needs_tests:   => 0
 * needs_docs:   => 0
 * has_patch:  0 => 1
 * stage:  Unreviewed => Accepted


Comment:

 `refresh_from_db()` doesn't know if a `@cached_property` is database-
 dependent or not. I suppose we can document this:
 [https://github.com/django/django/pull/7065 PR].

--
Ticket URL: <https://code.djangoproject.com/ticket/27048#comment:1>
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 django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/065.6b79309008696fb583e2fdb1e1e5d0cc%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to