Re: [Django] #27048: Document that refresh_from_db() doesn't clear @cached_properties

2016-08-12 Thread Django
#27048: Document that refresh_from_db() doesn't clear @cached_properties
-+-
 Reporter:  jarekwg  |Owner:  nobody
 Type:   |   Status:  closed
  Cleanup/optimization   |
Component:  Documentation|  Version:  master
 Severity:  Normal   |   Resolution:  fixed
 Keywords:  cached_property  | Triage Stage:  Ready for
  refresh_from_db|  checkin
Has patch:  1|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+-

Comment (by Tim Graham ):

 In [changeset:"eea74edc7068a9c75f0f7b09ae59bfdcacc35195" eea74ed]:
 {{{
 #!CommitTicketReference repository=""
 revision="eea74edc7068a9c75f0f7b09ae59bfdcacc35195"
 [1.10.x] Fixed #27048 -- Documented that refresh_from_db() doesn't reload
 @cached_properties.

 Backport of 9556005425ca3d1c8c2a0e8b48e228e63a0bdd32 from master
 }}}

--
Ticket URL: 
Django 
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.15d48ca697db93f9b018df53b4deb461%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #27048: Document that refresh_from_db() doesn't clear @cached_properties

2016-08-12 Thread Django
#27048: Document that refresh_from_db() doesn't clear @cached_properties
-+-
 Reporter:  jarekwg  |Owner:  nobody
 Type:   |   Status:  closed
  Cleanup/optimization   |
Component:  Documentation|  Version:  master
 Severity:  Normal   |   Resolution:  fixed
 Keywords:  cached_property  | Triage Stage:  Ready for
  refresh_from_db|  checkin
Has patch:  1|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+-
Changes (by GitHub ):

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


Comment:

 In [changeset:"9556005425ca3d1c8c2a0e8b48e228e63a0bdd32" 95560054]:
 {{{
 #!CommitTicketReference repository=""
 revision="9556005425ca3d1c8c2a0e8b48e228e63a0bdd32"
 Fixed #27048 -- Documented that refresh_from_db() doesn't reload
 @cached_properties.
 }}}

--
Ticket URL: 
Django 
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.dd88f87892f5fffcfde039279dc9b431%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #27048: Document that refresh_from_db() doesn't clear @cached_properties

2016-08-12 Thread Django
#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:  Ready for
  refresh_from_db|  checkin
Has patch:  1|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+-
Changes (by claudep):

 * stage:  Accepted => Ready for checkin


--
Ticket URL: 
Django 
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.88f5394d4f1b4fe3170605d4a603e1d6%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #27048: Document that refresh_from_db() doesn't clear @cached_properties (was: Clear cached_property on refresh_from_db)

2016-08-11 Thread Django
#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: 
Django 
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.