models: wrap unicode() arroung call to pgettext_lazy to fix errors when concatenating with normal unicode string

This commit is contained in:
Jérôme Schneider 2014-06-19 17:16:03 +02:00
parent 995907346a
commit 222d0a6f4d
1 changed files with 4 additions and 1 deletions

View File

@ -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'))))