Re: REG: get_display_name function in the User model

2015-04-20 Thread Anoop Thomas Mathew
Point noted Russell. Thank You for your comment. On 21 April 2015 at 09:49, Russell Keith-Magee wrote: > > I agree with Tim and Markus' comments - you're proposing to implement > a specific behavior where there is no "clearly right" answer. This > strikes me as something that is entirely site-de

Re: REG: get_display_name function in the User model

2015-04-20 Thread Russell Keith-Magee
Hi Anoop, I agree with Tim and Markus' comments - you're proposing to implement a specific behavior where there is no "clearly right" answer. This strikes me as something that is entirely site-dependent logic. You don't even need a custom user model - a template tag (or even a filter) could do thi

REG: get_display_name function in the User model

2015-04-20 Thread Anoop Thomas Mathew
Hi, Would like to get the views from the community on get_display_name() function in User model. This will be an advanced version of get_full_name() function which returns either the Firstname Lastname if available or fall-back gracefully to email and then to username; implemented in the django.co