I used a cheap hack. The comment object has an ID of the item that the comment was attached to. You can then give users a link to that to click, or auto-redirect them to that. If you use slugs, you can create a view that catches that ID, grabs the slug, and thus redirects them again to the original post. Like I said, cheap hacks.
On Nov 5, 1:39 pm, Ethan Jucovy <ethan.juc...@gmail.com> wrote: > On Thu, Nov 5, 2009 at 2:30 PM, David <cthl...@googlemail.com> wrote: > > Is it possible to redirect upon successful comment submission to the > > previous page when using Djangos built in render_comment_form ? > > I'm not sure if there's a more direct way, but you can override the > "comment_done" named URLconf with a custom view that redirects to > request.META.get('HTTP_REFERER', '/') > > hth, > egj --~--~---------~--~----~------------~-------~--~----~ 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---