Re: Template sets for widgets

2017-02-01 Thread Gert Steyn
I think something as simple as {% form your_form prefix='bootstrap' %} and {% field your_field prefix='bootstrap' %} would add huge flexibility, exactly the concept I was trying to convey! -- You received this message because you are subscribed to the Google Groups "Django developers (Contr

Re: Template sets for widgets

2017-02-01 Thread Florian Apolloner
On Wednesday, February 1, 2017 at 3:28:44 PM UTC+1, Tim Graham wrote: > > Hi Gert, I think the renderer API could be used for this use case. Did you > look at that? > > > https://docs.djangoproject.com/en/dev/ref/forms/renderers/#the-low-level-render-api > What I currently miss here is that there

Re: Template sets for widgets

2017-02-01 Thread Gert Steyn
Hi Tim I did, and I agree that a TemplatesSetting renderer of sorts would most likely be the way to implement. I also think that the use case of "*Using some CSS framework*" is common enough to warrant giving developers a clean/standard way of doing this rather than letting each roll their own

Re: Template sets for widgets

2017-02-01 Thread Tim Graham
Hi Gert, I think the renderer API could be used for this use case. Did you look at that? https://docs.djangoproject.com/en/dev/ref/forms/renderers/#the-low-level-render-api On Wednesday, February 1, 2017 at 6:05:08 AM UTC-5, Gert Steyn wrote: > > Hi All > > I got very excited when I read about t

Template sets for widgets

2017-02-01 Thread Gert Steyn
Hi All I got very excited when I read about the upcoming template based widgets, it is something that is really needed. I would like to hear your comments on a proposal I have that should only be a couple of lines to add but would add a massive usability boost. I propose that we add the concep