Changes between Initial Version and Version 1 of Ticket #10677


Ignore:
Timestamp:
Apr 2, 2009, 10:03:11 AM (16 years ago)
Author:
Jacob
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #10677

    • Property Triage Stage UnreviewedAccepted
  • Ticket #10677 – Description

    initial v1  
    11I 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.
    22
     3{{{
    34File "/var/lib/python-support/python2.5/django/core/handlers/base.py" in get_response
    45  86.                 response = callback(request, *callback_args, **callback_kwargs)
     
    2627Exception Type: ValueError at /comments/posted/
    2728Exception Value: invalid literal for int() with base 10: 'None'
     29}}}
    2830
    2931Shouldn't moderation.py connect to the comment_will_be_posted signal so post_comment() can handle the signal response?
Back to Top