/tests/regressiontests/comment_tests/custom_comments/views.py

https://code.google.com/p/mango-py/ · Python · 13 lines · 9 code · 4 blank · 0 comment · 0 complexity · 844ca84cbb09d5954e9ff6bce28a3e93 MD5 · raw file

  1. from django.http import HttpResponse
  2. def custom_submit_comment(request):
  3. return HttpResponse("Hello from the custom submit comment view.")
  4. def custom_flag_comment(request, comment_id):
  5. return HttpResponse("Hello from the custom flag view.")
  6. def custom_delete_comment(request, comment_id):
  7. return HttpResponse("Hello from the custom delete view.")
  8. def custom_approve_comment(request, comment_id):
  9. return HttpResponse("Hello from the custom approve view.")