models: wrap unicode() arroung call to pgettext_lazy to fix errors when concatenating with normal unicode string
This commit is contained in:
parent
995907346a
commit
222d0a6f4d
|
@ -11,7 +11,10 @@ from . import app_settings
|
|||
|
||||
|
||||
class Citoyen(AbstractUser):
|
||||
title = models.CharField(pgettext_lazy('person title', 'title'), max_length=16, blank=True,
|
||||
title = models.CharField(
|
||||
verbose_name=unicode(pgettext_lazy('person title', 'title')),
|
||||
max_length=16,
|
||||
blank=True,
|
||||
choices=tuple((x, x) for x in (_('Mrs'),
|
||||
_('Mr'))))
|
||||
|
||||
|
|
Reference in New Issue