#5382: create_update.delete_object always needs a confirmation page
--------------------------------+-------------------------------------------
Reporter: [EMAIL PROTECTED] | Owner: nobody
Status: new | Component: Generic views
Version: SVN | Keywords: delete_object
Stage: Unreviewed | Has_patch: 0
--------------------------------+-------------------------------------------
I've found one thing annoying about delete_object() view. In my
application I prefer to use HREFs (as opposed to forms) for object
deletion, together with JavaScript-based confirmation dialogs. This makes
delete_object() useless for me, as I want it to delete the object upon GET
request, without aby further confirmation page.
Could it be possible to add additional param like no_confirmation (with
False as default for backward compatibility) ?
Changing
{{{
if request.method == 'POST':
}}}
to
{{{
if no_confirmation or request.method == 'POST':
}}}
would do the trick then.
--
Ticket URL: <http://code.djangoproject.com/ticket/5382>
Django Code <http://code.djangoproject.com/>
The web framework for perfectionists with deadlines
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---