Changeset 9121 for django/trunk/django/contrib/comments/views
- Timestamp:
- 10/05/08 00:10:35 (3 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/trunk/django/contrib/comments/views/comments.py
r9119 r9121 8 8 from django.template.loader import render_to_string 9 9 from django.utils.html import escape 10 from django.views.decorators.http import require_POST 10 11 from django.contrib import comments 11 12 from django.contrib.comments import signals … … 29 30 errors a preview template, ``comments/preview.html``, will be rendered. 30 31 """ 31 32 # Require POST33 if request.method != 'POST':34 return http.HttpResponseNotAllowed(["POST"])35 36 32 # Fill out some initial data fields from an authenticated user, if present 37 33 data = request.POST.copy() … … 117 113 return next_redirect(data, next, comment_done, c=comment._get_pk_val()) 118 114 115 post_comment = require_POST(post_comment) 116 119 117 comment_done = confirmation_view( 120 118 template = "comments/posted.html",
