Abstract FormView
Hey,
I have a couple of FormViews that override quite a few methods. I want
to write an "Abstract View" that I can subclass for these. I'm
guessing what I actually need is a custom Mixin but I'm really not
sure.
Any suggestions on how to go about doing this?
Some methods I'm overriding:
get_form_kwargs
form_valid
form_invalid
get_context_data
Other than the form_class, the code in each is the same line for line
(except of course when referencing the Class name)
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home