I have been looking long and far for how to have 2 unique forms displayed on one page using the newer Django class based views method.
Can anybody reference anything? Or provide a basic example. Google is not being my "friend" for this.
I have been looking long and far for how to have 2 unique forms displayed on one page using the newer Django class based views method.
Can anybody reference anything? Or provide a basic example. Google is not being my "friend" for this.
The key is that you don't even have to use one of the
FormView
subclasses to process forms. You just have to add the machinery for processing the form manually. In the case where you do use aFormView
subclass, it will only process 1 and only 1 form. So if you need two forms, you just have to handle the second one manually. I'm usingDetailView
as a base class just to show that you don't even have to inherit from aFormView
type.