Ticket #8716: patch_comments.diff

File patch_comments.diff, 725 bytes (added by jmad, 16 years ago)
  • django/contrib/comments/views/comments.py

     
    3636    # Fill out some initial data fields from an authenticated user, if present
    3737    data = request.POST.copy()
    3838    if request.user.is_authenticated():
    39         if "name" not in data:
     39        if  0 == len (data["name"])  :
    4040            data["name"] = request.user.get_full_name()
    41         if "email" not in data:
     41        if  0 == len (data["email"])  :
    4242            data["email"] = request.user.email
    4343
    4444    # Look up the object we're trying to comment about
Back to Top