﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
10865	Unable to pickle Queryset	wfagan@…	nobody	"I am getting an error while trying this code. I am using memcached as my backend. It looks like it isn't able to correctly pickle the queryset. This article makes me think it should be able to pickle them... http://docs.djangoproject.com/en/dev/ref/models/querysets/#pickling-querysets
{{{
>>> places = Place.objects.all()
>>> cache.set(""places"", pickle.dumps(places))
>>> c = cache.get(""places"")
>>> pickle.loads(c)
Traceback (most recent call last):
  File ""<console>"", line 1, in <module>
  File ""/usr/lib/python2.6/pickle.py"", line 1374, in loads
    return Unpickler(file).load()
  File ""/usr/lib/python2.6/pickle.py"", line 858, in load
    dispatch[key](self)
  File ""/usr/lib/python2.6/pickle.py"", line 1090, in load_global
    klass = self.find_class(module, name)
  File ""/usr/lib/python2.6/pickle.py"", line 1124, in find_class
    __import__(module)
TypeError: __import__() argument 1 must be string without null bytes, not str
}}}"		closed	Uncategorized	dev		worksforme			Unreviewed	0	0	0	0	0	0
