pinax / pinax-likes

a liking app for Django

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Like

opened this issue · comments

Since a like button usually lie in a detail page. Assume I have a blog post which URL is /post/4. When a anonymous user click the like boutton, he will redirect to the login page, with the url like
/accounts/login/next=?like/5/6. Once he login, a http get request send to that url, while we didn't implement the get method in our view, so a exception will be thrown.Do you think so?By the way, I didn't test it in real situation. I just analysis from the source code.

@zmrenwu thanks for your analysis. Writing a test to demonstrate behavior is the best way to get something changed. You might write a simple test showing this issue and submit a pull request for review. Thanks!