Skip to content

Fix automatic comment re-add on page reload#97

Open
BumbaggioBenenbaum wants to merge 1 commit intoPacktPublishing:masterfrom
BumbaggioBenenbaum:patch-1
Open

Fix automatic comment re-add on page reload#97
BumbaggioBenenbaum wants to merge 1 commit intoPacktPublishing:masterfrom
BumbaggioBenenbaum:patch-1

Conversation

@BumbaggioBenenbaum
Copy link
Copy Markdown

The code in the book (and here) contains a bug - after posting a comment, refreshing the page (F5) causes the same comment to be posted again, as many times as we refresh. A solution to this problem could be a HttpResponseRedirect using the respective post's get_absolute_url.

The code in the book (and here) contains a bug - after posting a comment, refreshing the page (F5) causes the same comment to be posted again, as many times as we refresh. A solution to this problem could be a HttpResponseRedirect using the respective post's get_absolute_url.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant