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 that shows all build requests, and then a separate page with 
the details of each build request. I want to add a form to this 
builddetails template, but I'm not sure what is the correct way to do this 
when the template is already pulling info from the model. Every tutorial 
I've followed has shown using a form under a separate URL, but that is not 
viable.

my current view for builddetails is this:

def builddetails(request, id):
    build = Build.objects.get(pk=id);
    return render(request, 'app/builddetails.html', { 'build': build });

How do I combine this with a ModelForm on the same page? 

the ModelForm I was trying to use looks like this:

class BuildForm(forms.ModelForm):
    class Meta:
        model = Build,
        fields = ['notes', 'build_engineer', 'latest_bios','bios_settings', 
'hot_keys_tested', 'office_activated']

If I need to provide any more information please let me know, and thank you 
so much in advance for any help you can offer. 

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/733168e2-2559-4726-9067-dc2a23397bb7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to