#24640: custom function for display name
------------------------------+--------------------
     Reporter:  atmb4u        |      Owner:  nobody
         Type:  New feature   |     Status:  new
    Component:  contrib.auth  |    Version:  master
     Severity:  Normal        |   Keywords:
 Triage Stage:  Unreviewed    |  Has patch:  1
Easy pickings:  1             |      UI/UX:  0
------------------------------+--------------------
 Most of the time, get_full_name() returns only first name and last name,
 and many a times, if first name and last name is not present, we need at
 least the email or the username to be returned to the template.
 get_display_name() returns the email if there is no get_full_name(); and
 if no email, then fallback to username. I find get_display_name more
 pragmatic than the proposed get_full_name, when it comes to showing user
 details in templates.

--
Ticket URL: <https://code.djangoproject.com/ticket/24640>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/049.70a8ba1be5ef07cd7efb992c6e60dbeb%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to