Opened 11 years ago
Last modified 11 years ago
#24381 closed Bug
Cache pickling issue in 1.8a1 — at Initial Version
| Reported by: | Mark Tranchant | Owned by: | nobody |
|---|---|---|---|
| Component: | Core (Cache system) | Version: | 1.8alpha1 |
| Severity: | Release blocker | Keywords: | cache pickle empty queryset |
| Cc: | Triage Stage: | Accepted | |
| Has patch: | yes | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
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