Wondering why you dont inherit from just Formview..and define the
success URL to a separate class based ListView. It splits it up into
two class based views with the Formview taking care of returning the
errors on failure. On success it hands off to your Listview based
class that knows which queryset to get and display the response.
I am new to class based views as well , but I find they are a lot
easier to comprehend looking at the source code for the views
(https://github.com/django/django/blob/master/django/views/generic/edit.py
and https://github.com/django/django/blob/master/django/views/generic/list.py).
Or maybe you could just inherit from Formview instead of BaseFormView
and ovveride the "get" to handoff to the form and return the response.
Hope this helps..
Hari
BaseFormView implements the same behavior as FormView, but doesn't
include the TemplateResponseMixin.
Mixins
django.views.generic.edit.FormMixin
django.views.generic.edit.ProcessFormView
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/django-users/-/f1cCwSjvzFsJ.
> To post to this group, send email to django...@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.