Re: Improved ajax support idea

2012-11-22 Thread Timothy Clemans
I like the idea. Could you create a third party app so I could use it right away? On Thu, Nov 22, 2012 at 2:39 AM, James Pic wrote: > Hi all, > > More projects use AJAX nowadays. Django could help them more. > > For example, FormView, could check if

Improved ajax support idea

2012-11-22 Thread James Pic
Hi all, More projects use AJAX nowadays. Django could help them more. For example, FormView, could check if request.is_ajax_request(), and in that case return a JSON dict for example: { 'html': , 'messages': [], 'error_fields': [], } All generic views could do something like this.