Opened 10 years ago
Last modified 10 years ago
#24381 closed Bug
Cache pickling issue in 1.8a1 — at Initial Version
Description ¶
In 1.7.4, I can run the following in ../manage.py shell:
>>> from MyProject.models import * >>> from django.core.cache import cache >>> cl = MyModel.objects.filter(contributor__task__id=4) >>> cl <<< [] >>> type(cl) <<< django.db.models.query.QuerySet >>> cache.set('testing', cl) >>> cache.get('testing') <<< []
In 1.8a1, the last step generates an exception. See attachment for trace.
PicklingError: Can't pickle <type 'module'>: it's not found as __builtin__.module
Note:
See TracTickets
for help on using tickets.
Exception trace