-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Description
Hi!
I'm trying to write up a concise example for version 6.0.0 of "django-debug-toolbar", but I think the JSON serialization introduced in release version 6.0.0 may be incompatible with recording calls to the Django's cache(s).
The only guideline for using the cache is "key should be a str, and value can be any picklable Python object.", and I'm actively seeing this erroring out in my project.
For example, when the "django-debug-toolbar" saves the "cache" panel details, it attempts to serialize the data into a JSON string.
However, it is perfectly valid for the data to contain complex Python objects (such as a Python dictionary that uses a Python Class as one of its keys).
I assume using "pickle" instead of JSON would resolve this, but maybe I'm oversimplifying this