diff options
Diffstat (limited to 'tests/choices/models.py')
| -rw-r--r-- | tests/choices/models.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/choices/models.py b/tests/choices/models.py index b4ef8954ab..37ef8daf60 100644 --- a/tests/choices/models.py +++ b/tests/choices/models.py @@ -10,12 +10,13 @@ field. This method returns the "human-readable" value of the field. """ from django.db import models +from django.utils.translation import gettext_lazy as _ class Person(models.Model): GENDER_CHOICES = ( - ('M', 'Male'), - ('F', 'Female'), + ('M', _('Male')), + ('F', _('Female')), ) name = models.CharField(max_length=20) gender = models.CharField(max_length=1, choices=GENDER_CHOICES) |
