Ticket #10677: 10677_2.diff

File 10677_2.diff, 613 bytes (added by Thejaswi Puthraya, 16 years ago)

fixes the broken tests issue

  • django/contrib/comments/views/comments.py

    diff --git a/django/contrib/comments/views/comments.py b/django/contrib/comments/views/comments.py
    index ae3a672..011bcce 100644
    a b def post_comment(request, next=None):  
    111111        request = request
    112112    )
    113113
     114    if not comment._get_pk_val():
     115        # If comment was deleted by any of the 
     116        # signal handlers.
     117        return next_redirect(data, next, comment_done)
    114118    return next_redirect(data, next, comment_done, c=comment._get_pk_val())
    115119
    116120post_comment = require_POST(post_comment)
Back to Top