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 13328,Pickling a queryset with a datetime__lte filter causes a TypeError,Brandon Konkle,nobody,"We're caching with memcached, and using django.core.cache to directly set cache values. When we try to cache a queryset of blog entries with a `datetime__lte` filter, we get a !TypeError telling us that a string or Unicode object was expected, but a !NoneType was received instead. I'm attaching an abbreviated example of the model and manager we're using, and the manage.py shell steps taken to reproduce the error along with the traceback it provides. The error is related to line 6 of the attached models.py file - if I remove the `release_date__lte=datetime.datetime.now()` filter, the `cache.set` works without an issue.",,new,Cache system,1.2-beta,,,"pickle, queryset, datetime__lte",,Unreviewed,0,0,0,0,0,0