Nice one Matthias !
We might have something similar, in dal, discussion is undergoing:
https://github.com/yourlabs/django-autocomplete-light/issues/756#issuecomment-252368089
Currently ddf also renders json in a script tag in the middle of the form,
i think I might take the same direction as you
On Thursday, September 29, 2016 at 4:11:04 PM UTC+2, is_null wrote:
>
> Thanks for the heads up, a similar ticket has been closed as wontfix,
> because it isn't compatible with CSP:
> https://code.djangoproject.com/ticket/13978
>
> While I'm all against inline scripts, I have a use case which s
Thanks for the heads up, a similar ticket has been closed as wontfix,
because it isn't compatible with CSP:
https://code.djangoproject.com/ticket/13978
While I'm all against inline scripts, I have a use case which seems be
legitimate:
https://github.com/yourlabs/django-autocomplete-light/pull/733/
I'm not exactly sure what your proposal entails. Could you give some
psuedo-code to demonstrate what you have in mind?
By the way, there is some discussion that it might be best to replace the
Media class, although it's not entirely clear how to do that:
https://code.djangoproject.com/ticket/22
Hello list \o/
Currently, we can attach scripts and css by declaring their urls in Media.
It then renders the script and link tags, allowing users to have that
outside the form tag in the template, ie. in the HTML head.
A good way to pass a widget's configuration from python to js is to pass
them