mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
Fixed #8630: finished the custom comment app API that was left out of 1.0. This means it's now possible to override any of the models, forms, or views used by the comment app; see the new custom comment app docs for details and an example. Thanks to Thejaswi Puthraya for the original patch, and to carljm for docs and tests.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@9890 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
13
tests/regressiontests/comment_tests/custom_comments/views.py
Normal file
13
tests/regressiontests/comment_tests/custom_comments/views.py
Normal file
@@ -0,0 +1,13 @@
|
||||
from django.http import HttpResponse
|
||||
|
||||
def custom_submit_comment(request):
|
||||
return HttpResponse("Hello from the custom submit comment view.")
|
||||
|
||||
def custom_flag_comment(request, comment_id):
|
||||
return HttpResponse("Hello from the custom flag view.")
|
||||
|
||||
def custom_delete_comment(request, comment_id):
|
||||
return HttpResponse("Hello from the custom delete view.")
|
||||
|
||||
def custom_approve_comment(request, comment_id):
|
||||
return HttpResponse("Hello from the custom approve view.")
|
||||
Reference in New Issue
Block a user