Re: Making the admin compatible with CSP

2015-09-14 Thread Florian Apolloner
On Monday, September 14, 2015 at 1:17:37 AM UTC+2, jasbligh wrote: > > I'd propose solving as follows > 1) use the autofocus attribute when creating the form. This will work for > IE10+ http://caniuse.com/#feat=autofocus It can also be done by including > a creating a few targeted one line js

Re: Making the admin compatible with CSP

2015-09-14 Thread James Bligh
On 14 September 2015 at 11:52, Florian Apolloner wrote: > > > On Monday, September 14, 2015 at 1:17:37 AM UTC+2, jasbligh wrote: >> >> I'd propose solving as follows >> 1) use the autofocus attribute when creating the form. This will work for >> IE10+ http://caniuse.com/#feat=autofocus It can als

Re: Making the admin compatible with CSP

2015-09-14 Thread Florian Apolloner
On Monday, September 14, 2015 at 1:54:06 PM UTC+2, jasbligh wrote: > > Perfect, would you know where would be best to place the js in that case? > (I've got the attribute working with the forms framework though) > Dunno, any existing file which has a few functions should do ;) If the form attr

Re: request for API review of streaming responses additions

2015-09-14 Thread Matthew Somerville
On Monday, 7 September 2015 15:05:35 UTC+1, Aymeric Augustin wrote: > 2015-09-07 10:00 GMT+02:00 Yann Fouillat > > : > >> First I will say that most of this pull request is a port of >> https://github.com/django/django/pull/1037 which I ported more or less >> blindly. >> > > As far as I can tell

Re: Making the admin compatible with CSP

2015-09-14 Thread James Bligh
> On 14 Sep 2015, at 11:52, Florian Apolloner wrote: > > Makes sense, depending on the actual parameters data attributes could make > sense too for a few things. Oh, btw please do not handwrite JSON in > templates, either do it in the view or use a filter to actually create JSON > which then