Re: Discuss https://github.com/django/django/pull/11157

2019-07-20 Thread Carlton Gibson
I’m exactly -1 on this, for exactly the reasons given. ALL it takes for you to implement this is to subclass TemplateView and override render_to_response(). That’s it. This was Tom’s point in his review four years ago: the ease of directly implementing it means the added API surface area isn’t w

Re: Discuss https://github.com/django/django/pull/11157

2019-07-20 Thread Petr Glotov
What if we keep *StreamingTemplateResponse* and do *TemplateView(stream=True) *flag? I just want to have something out of the box to use. On Friday, July 19, 2019 at 5:40:52 PM UTC-7, Petr Glotov wrote: > > Hi All, there is a PR where > template st

select quantity for each items selected in many to many field

2019-07-20 Thread hunar techie
hi there i'm working on an restaurant ordering system , when someone order more than one product with different quantities for each product , be able to select its quantities it may order 3 Pizza with 2 sandwich , how to let the customer to define the quantities of each product , and then calculate

Re: Discuss https://github.com/django/django/pull/11157

2019-07-20 Thread Adam Johnson
I've had a quick look at the PR and discussions. The ability to stream template rendering looks fantastic and I know I've seen on a few features in projects that could take advantage of it. I agree with Carlton's last comment on the PR though. Adding all the extra classes to Django is a bit of a