views:

85

answers:

1

Is there a quick way to submit (pre-defined) POST data from a hyperlink in a Django template? I've got an 'add this to my favourites' link on page. I'm currently doing this with a GET request, which obviously breaks all kinds of rules.

I could manually build a form and have the link submit it with Javascript. I'm looking for an automatic way to do the same thing, essentially the equivalent of Rails' button_to.

A: 

Not that I can find. Sounds like a good candidate for a template tag and sharing.

Ignacio Vazquez-Abrams