Re: django adding element to list

2020-11-12 Thread Joel Goldstick
On Wed, Nov 11, 2020 at 7:48 PM rssail wrote: > > > I'm confused with how django adds elements to a list. consider the following: > > def add(request): > if request.method == "POST": > form = NewTaskForm(request.POST) should the above line be indented? > if form.is_

django adding element to list

2020-11-11 Thread rssail
I'm confused with how django adds elements to a list. consider the following: def add(request): if request.method == "POST": form = NewTaskForm(request.POST) if form.is_valid(): task = form.cleaned_data["task"] request.sessio