Commit 0b6eb4a8 by Tom Christie

Fix for Django 1.7 issue with long default verbose_name arguments on ChoiceField

parent 0ccb1481
...@@ -86,7 +86,7 @@ class FieldOptionsModel(models.Model): ...@@ -86,7 +86,7 @@ class FieldOptionsModel(models.Model):
class MappingForChoicesWithNonStandardArgs(models.Model): class MappingForChoicesWithNonStandardArgs(models.Model):
choices_field_with_nonstandard_args = models.DecimalField(max_digits=3, decimal_places=1, choices=DECIMAL_CHOICES) choices_field_with_nonstandard_args = models.DecimalField(max_digits=3, decimal_places=1, choices=DECIMAL_CHOICES, verbose_name='A label')
class TestModelSerializer(TestCase): class TestModelSerializer(TestCase):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment