Changes between Initial Version and Version 1 of Ticket #10677
- 04/02/2009 10:03:11 AM (7 years ago)
- Property Patch needs improvement unset
- Property Needs tests unset
- Property Needs documentation unset
initial v1 1 1 I tried out the new moderation tools and I found that when a comment is deleted in the post_save signal handler post_save_moderation(), it breaks the comment confirmation view because the comment instance is gone and _get_pk_val() returns None. This causes the following traceback for the redirected request. 2 2 3 3 4 File "/var/lib/python-support/python2.5/django/core/handlers/base.py" in get_response 4 5 86. response = callback(request, *callback_args, **callback_kwargs) … … 26 27 Exception Type: ValueError at /comments/posted/ 27 28 Exception Value: invalid literal for int() with base 10: 'None' 29 28 30 29 31 Shouldn't moderation.py connect to the comment_will_be_posted signal so post_comment() can handle the signal response?