On Tuesday, September 15, 2015 at 12:16:03 AM UTC+2, jasbligh wrote:
>
> Then in the javascript call JSON.parse twice
>
No idea why you'd ever need to use that; var json = JSON.parse('{{
json_dumps|escapejs }}'); should be fine already, or do I miss anything?
That said, we should get rid of inline js anyways, so either go with a data
attribute or "<script type=application/json>" + the filter from argonauts
--
You received this message because you are subscribed to the Google Groups
"Django developers (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/django-developers.
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-developers/796f9f68-2f45-4a1c-96d0-eddadf86d21e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.