#31140: Caching of dict containing django.utils.safestring.SafeText objects 
fails
with bmemcached.
-----------------------------------+--------------------------------------
     Reporter:  Hugo Rodger-Brown  |                    Owner:  nobody
         Type:  Uncategorized      |                   Status:  new
    Component:  Utilities          |                  Version:  2.2
     Severity:  Normal             |               Resolution:
     Keywords:  cache bmemcached   |             Triage Stage:  Unreviewed
    Has patch:  0                  |      Needs documentation:  0
  Needs tests:  0                  |  Patch needs improvement:  0
Easy pickings:  0                  |                    UI/UX:  0
-----------------------------------+--------------------------------------

Comment (by Hugo Rodger-Brown):

 I've dug into it, and it looks like `SafeText`'s `__str__ function
 returning self causes the bmemcached serialize method to tie itself in
 knots. Not a Django issue, or necessarily a bmemcached issue. We have
 fixed our usage to force SafeText objects to str (by appending and empty
 str) wherever they are being cached.

 
https://github.com/django/django/commit/ccfd1295f986cdf628d774937d0b38a14584721f

-- 
Ticket URL: <https://code.djangoproject.com/ticket/31140#comment:2>
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/073.522c4cf57eaec6b82c152a7b1fcf42eb%40djangoproject.com.

Reply via email to