You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The json encoding should use django.core.serializers.json.DjangoJSONEncoder so lazy components from settings can properly be evaluated.
For example, I'm trying to set imageManagerLoadURL using reverse_lazy. However, the default encoding gives a traceback when it encounters the reverse_lazy. If it used DjangoJSONEncoder then it would work properly.
from django.core.serializers.json import DjangoJSONEncoder
json_options = json.dumps(options, cls=DjangoJSONEncoder)
The text was updated successfully, but these errors were encountered:
django-froala-editor/froala_editor/widgets.py
Line 56 in e70b402
The json encoding should use
django.core.serializers.json.DjangoJSONEncoder
solazy
components from settings can properly be evaluated.For example, I'm trying to set
imageManagerLoadURL
usingreverse_lazy
. However, the default encoding gives a traceback when it encounters thereverse_lazy
. If it usedDjangoJSONEncoder
then it would work properly.The text was updated successfully, but these errors were encountered: