I was so tired of it that I wrote my own general ideas to handle it. In the process, I discovered that django already has an underrated general view for handling forms. They are fairly straightforward analogues of documented general views, but take forms and basically follow the same pattern that you used in your example. Ultimately, I found them too inflexible and stupid for my use (I do not want the create_or_update view, I will not consider these two actions separately).
Edit: you didnโt like the Fragsworth answer, which points to the same thing I'm talking about, I believe that you will not be like me either. Here is an example of how it works.
# in urls.py urlpatterns += patterns("", (u'^...$', 'django.views.generic.create_update.update', { 'form_class': ContactForm }) )
ContactForm must have a save() method, and where the form processing logic goes.
SingleNegationElimination
source share