diff --git a/django/contrib/comments/views/comments.py b/django/contrib/comments/views/comments.py
index e583d9d..e5cf890 100644
a
|
b
|
def post_comment(request, next=None):
|
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 | if request.user.get_full_name(): |
| 41 | data["name"] = request.user.get_full_name() |
| 42 | else: |
| 43 | data["name"] = request.user.username |
41 | 44 | if not data.get('email', ''): |
42 | 45 | data["email"] = request.user.email |
43 | 46 | |