On Sun, 2008-04-27 at 05:16 -0700, Julien wrote:
> Hi,
> 
> I'm back again with an issue that I got since upgrading to queryset-
> refactor. That issue appears at run time. Every page on my site caches
> the sidebar, which contains some expensive randomly generated content.
> Since I upgraded to qs-rf I get the following error for every page of
> the site:
> 
> Exception Type: PicklingError at /
> Exception Value: Can't pickle <type 'function'>: attribute lookup
> __builtin__.function failed

Querysets aren't picklable. It's really hard! I'll work on it at some
point, but... it's really hard!

Turn them into a list instead and cache that.

Malcolm

-- 
Tolkien is hobbit-forming. 
http://www.pointy-stick.com/blog/


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to