{{{
TypeError at /uploader/select-models/
'Designates whether this user should be treated as active. Unselect this
instead of deleting accounts.' is not JSON serializable
}}}
That is because "Designates whether this user should be treated as active.
...." is not a string, but the converted representation of a
django.utils.functional.lazy.<locals>__proxy__ object. That is not JSON
serializable.
Debugging this is onerous because in all respects the help text looks and
acts like a string.
--
Ticket URL: <https://code.djangoproject.com/ticket/30723>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* status: new => closed
* resolution: => worksforme
Comment:
Django has a special JSON encoder to dumps typical Django data:
https://docs.djangoproject.com/en/2.2/topics/serialization/#djangojsonencoder
I don't see what we could do to prevent your bad debugging session, but if
you have ideas, feel free to suggest them.
--
Ticket URL: <https://code.djangoproject.com/ticket/30723#comment:1>