Ticket #8716: patch_comments.diff
File patch_comments.diff, 725 bytes (added by , 16 years ago) |
---|
-
django/contrib/comments/views/comments.py
36 36 # Fill out some initial data fields from an authenticated user, if present 37 37 data = request.POST.copy() 38 38 if request.user.is_authenticated(): 39 if "name" not in data:39 if 0 == len (data["name"]) : 40 40 data["name"] = request.user.get_full_name() 41 if "email" not in data:41 if 0 == len (data["email"]) : 42 42 data["email"] = request.user.email 43 43 44 44 # Look up the object we're trying to comment about