Skip to content

Commit

Permalink
CSRF protect the suggestions form
Browse files Browse the repository at this point in the history
Oops.
  • Loading branch information
willkg committed Feb 25, 2013
1 parent 90bf0db commit ab5c1c0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions richard/suggestions/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,14 @@

from django.contrib import messages
from django.shortcuts import render, redirect
from django.views.decorators.csrf import csrf_protect

from richard.suggestions.forms import SuggestionForm
from richard.suggestions.models import Suggestion
from richard.suggestions.utils import mark_if_spam


@csrf_protect
def suggestions(request):
"""Show a list of all accepted suggestions and their status."""
if request.method == 'POST':
Expand Down

0 comments on commit ab5c1c0

Please sign in to comment.