[patch] allow to disable POST handling in create_update generic views
|Reported by:||Bastian Kleineidam <calvin@…>||Owned by:||jacob|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
Suppose you have custom templates for the create_update generic views with more than one form. Then one needs to ensable the POST processing of the generic views only for one single form, and disable it for all the others (supposing of course the form actions all lead to the same view handler function).
This patch adds an additional keyword parameter handle_post=True, which if set to False prevents the object deletion/creation/edit even if the request method is a POST.
The patch is backwards compatible because the default value is True.