#8968: No way to utilize `next` parameter to redirect after comment deletion
----------------------------------------------+-----------------------------
Reporter: Dzhus | Owner: nobody
Status: new | Milestone:
Component: django.contrib.comments | Version: 1.0
Resolution: | Keywords: comments
Stage: Unreviewed | Has_patch: 1
Needs_docs: 0 | Needs_tests: 0
Needs_better_patch: 0 |
----------------------------------------------+-----------------------------
Comment (by arne):
If a user decides to preview a comment before posting it, the next
parameter is also lost. #9268 describes the problem, but wants to solve
more than just passing the next parameter. Maybe this patch could be
modified to also pass the next parameter for the preview view.
naive approach:
{{{
--- contrib/comments/views/comments.py
+++ contrib/comments/views/comments.py
@@ -80,6 +80,7 @@
template_list, {
"comment" : form.data.get("comment", ""),
"form" : form,
+ "next": data.get("next", None)
},
RequestContext(request, {})
)
}}}
--
Ticket URL: <http://code.djangoproject.com/ticket/8968#comment:4>
Django <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
-~----------~----~----~----~------~----~------~--~---