diff options
Diffstat (limited to 'tests/modeltests/choices/models.py')
| -rw-r--r-- | tests/modeltests/choices/models.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/modeltests/choices/models.py b/tests/modeltests/choices/models.py index 38dcb934c5..881fb29fd2 100644 --- a/tests/modeltests/choices/models.py +++ b/tests/modeltests/choices/models.py @@ -20,7 +20,7 @@ class Person(models.Model): name = models.CharField(maxlength=20) gender = models.CharField(maxlength=1, choices=GENDER_CHOICES) - def __repr__(self): + def __str__(self): return self.name API_TESTS = """ |
