From 0b6eb4a881341f4164ed21edaba046ad3564cb30 Mon Sep 17 00:00:00 2001 From: Tom Christie Date: Thu, 16 Jul 2015 16:01:50 +0100 Subject: [PATCH] Fix for Django 1.7 issue with long default verbose_name arguments on ChoiceField --- tests/test_model_serializer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_model_serializer.py b/tests/test_model_serializer.py index a6b5d4e19..24e3e21d1 100644 --- a/tests/test_model_serializer.py +++ b/tests/test_model_serializer.py @@ -86,7 +86,7 @@ class FieldOptionsModel(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):