-
Notifications
You must be signed in to change notification settings - Fork 172
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
View to use for non-model forms #255
Comments
from extra_views import FormSetView Hi. The above can be used to render a single formset which is not connected to a model. There isn't a class in this library to do what you've asked. In order to create a generic view which just has a single form and a few different formsets, create a subclass of Formsets would be represented using BaseFormSetFactory instances. If access to the request object was needed, you'd need to do something like InlineFormSetFactory. |
Thanks. Would a class, as my request, be useful in Extra Views, or is it a little too niche? |
In my opinion, it probably is too niche. The objective of this package is to replicate the functionality of the Django Admin in generic views and it is outside of that. I also think the formsetfactory constructor classes like From my personal experience in writing django apps, this has only come up once and it's just simpler to write either a one-off CBV or even a functional view to handle multiple formsets. |
Which view should one use if one wants to create forms/formsets that are not attached to models, ie something like
CreateWithInlinesView
with associatedInlineFormsetFactory
where there are no models?Or, a technique for managing such?
Thanks
The text was updated successfully, but these errors were encountered: