Re: how to combine views in one template

2017-06-17 Thread Mark Alan Jones
ld, 'form': form }) Thanks all for help On Sunday, June 18, 2017 at 12:51:00 AM UTC+1, Mark Alan Jones wrote: > > Thank you very much for the help Matthew, that is absolutely spot on, and > greatly appreciated. > > My view now looks like this: > def builddetails(re

Re: how to combine views in one template

2017-06-17 Thread Mark Alan Jones
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’: form }) > > > > > > &

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