#36033: Getting TypeError: cannot pickle 'dict_values' object Error with Django
4.2.16
-------------------------------------+-------------------------------------
Reporter: Bittu Ray | Type:
| Uncategorized
Status: new | Component: Core
| (Cache system)
Version: 4.2 | Severity: Release
| blocker
Keywords: Django 4.2, Cache | Triage Stage:
error, Redis Cache, Pickle | Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
I am using django-redis-cache 3.0.1 with Django 4.2.16, and I am getting
this error in one of admin page -
{{{
TypeError: cannot pickle 'dict_values' object
}}}
This same code is working when I use it with Django 3.2.25. The value for
which I am getting this error is
{{{
{
cls: <class 'django_select2.forms.ModelSelect2Widget'>,
max_results: 25,
queryset: [
<RecordQuerySet from business.models at 0xf8b2af2c1b50>,
<django.db.models.sql.query.Query object at 0xf8b2b7ed4940>
],
search_fields: [
"id__icontains",
[Filtered],
"telecom_operator__icontains",
"area_code__icontains",
"cloud_telephony_operator__icontains"
],
url: "/select2/fields/auto.json"
}
}}}
It's failing during Pickle serialization of the above value.
--
Ticket URL: <
https://code.djangoproject.com/ticket/36033>
Django <
https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.