You'll probably want to look at setting up a FormWizard to break up your
workflow into steps (fill out some fields, click next to continue, etc.).
Django handles the multi-step forms for you very nicely.
https://docs.djangoproject.com/en/dev/ref/contrib/formtools/form-wizard/
I find wizards to be
I wrote an app that allows people to login to fill out an application. It
has quite a few text areas that have to be filled out, so the idea was to
allow them to fill out partial and come back and work on it and eventually
submit it. The last stage before submit I pull all the data into a final
I would assume you want something akin to the first example here:
https://docs.djangoproject.com/en/dev/topics/forms/modelforms/
Once you have the form object built with the instance of your Answer
object, just pass it along.
Since I've never needed more than one form on a page, there may be oth
Here is my entire view class to go with a ModelForm. How do I get the
various forms as context into my template?
class ApplicationVerify(UpdateView):
model = Answers
form_class = ApplicationCheckForm
template_name = 'requestform/application_detail.html'
@method_decorator(login_re
It looks like you are passing the context an actual Answers object, not a
Form or ModelForm object that will add/update an Answers object, hence the
reason the trace back complains about a lack of 'fields'.
-James
On Monday, September 1, 2014, Brad Rice wrote:
> This document seems to indicate
This document seems to indicate I can have two forms inside one set of form
tags:
http://django-crispy-forms.readthedocs.org/en/latest/crispy_tag_forms.html#rendering-several-forms-with-helpers
I cannot figure out how to set the context to be able to iterate over both
forms.
{% crispy form %}
6 matches
Mail list logo