On Apr 18, 2009, at 6:03 PM, SoCow wrote:

>
> Hi there,
>
> I've implemented django.contrib.comments and activated the custom
> redirect option by including the following line in the comments form:
>
> <input type="hidden" name="next"
> value="{{ object.get_absolute_url }}" />
>
> This works great for redirecting back to the original object from
> which it was called. However, I can't work out how to achievie this
> from the preview.html form view, the above method sends me to:
>
> comments/post/c?c=x
>
> where x is the comment number. How would I return the user to the
> original page from which the comment was attempted to be entered?

What version of django are you using? Revision 10418 fixes this so  
that the "next" parameter gets passed in to the preview view. You can  
update to this version or later, or look at the patch and apply it  
yourself, it's pretty simple.

Yours,
Eric

>
> I'm a total newbie so please give as much detail as you can.
>
> Many thanks, much appreciated.
>
> Brap!
>
>
>
> >


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to