Ticket #8803: comments-view.diff

File comments-view.diff, 597 bytes (added by Ben Spaulding, 16 years ago)

A little shorter version.

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

     
    3737    data = request.POST.copy()
    3838    if request.user.is_authenticated():
    3939        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
    4141        if not data.get('email', ''):
    4242            data["email"] = request.user.email
    4343
Back to Top