Re: how to combine views in one template

2017-06-17 Thread Mark Alan Jones
st, id): >> >> build = Build.objects.get(pk=id) >> >> form = BuildForm(request.POST or None) >> >> if form.is_valid(): >> >>form.save() >> >> return render(request, 'app/builddetails.html', { 'build': build, >> ‘form’:

Re: how to combine views in one template

2017-06-17 Thread Mark Alan Jones
gt; > *From:* django...@googlegroups.com [mailto: > django...@googlegroups.com ] *On Behalf Of *Mark Alan Jones > *Sent:* Thursday, June 15, 2017 6:04 PM > *To:* Django users > *Subject:* how to combine views in one template > > > > Hello Django Community, > >

Re: how to combine views in one template

2017-06-16 Thread yingi keme
def builddetails(request, id): build = Build.objects.get(pk=id) Obj = BuildForm(request.POST) Obj.save() return render(request, .) > On 16 Jun 2017, at 12:03 AM, Mark Alan Jones wrote: > > Hello Django Community, > > I am new to Django and tackling my first app outside of

RE: how to combine views in one template

2017-06-16 Thread Matthew Pava
(): form.save() return render(request, 'app/builddetails.html', { 'build': build, ‘form’: form }) From: django-users@googlegroups.com [mailto:django-users@googlegroups.com] On Behalf Of Mark Alan Jones Sent: Thursday, June 15, 2017 6:04 PM To: Django users Subject: how to

how to combine views in one template

2017-06-15 Thread Mark Alan Jones
Hello Django Community, I am new to Django and tackling my first app outside of the tutorial. The app I'm working on is a simple ticket system for build requests at my IT Company. I only have one model 'Build', and I have checkboxes that denote how far the build has been done. I have a page t