Ticket #8803: comments-view.diff
File comments-view.diff, 597 bytes (added by , 16 years ago) |
---|
-
django/contrib/comments/views/comments.py
37 37 data = request.POST.copy() 38 38 if request.user.is_authenticated(): 39 39 if not data.get('name', ''): 40 data["name"] = request.user.get_full_name() 40 data["name"] = request.user.get_full_name() or request.user.username 41 41 if not data.get('email', ''): 42 42 data["email"] = request.user.email 43 43