full_name order, internationalization

Issue #1361 open
Former user created an issue

contact/model.py defines _get_full_name() as:

return u'%s %s' % (self.last_name, self.first_name)

Unfortunately, the order is opposite in eastern Asian countries ( also in Hungary, Finland ). It should use a format template and be able to overridden in local_settings , for example as follows.

FULL_NAME_FORMAT = u'%(first_name)s %(last_name)s'

... then ...

return FULL_NAME_FORMAT % {'first_name':self.last_name, 'last_name':self.first_name}

Comments (1)

  1. Log in to comment