Skip to content

Commit 0b6eb4a

Browse files
committed
Fix for Django 1.7 issue with long default verbose_name arguments on ChoiceField
1 parent 0ccb148 commit 0b6eb4a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_model_serializer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ class FieldOptionsModel(models.Model):
8686

8787

8888
class MappingForChoicesWithNonStandardArgs(models.Model):
89-
choices_field_with_nonstandard_args = models.DecimalField(max_digits=3, decimal_places=1, choices=DECIMAL_CHOICES)
89+
choices_field_with_nonstandard_args = models.DecimalField(max_digits=3, decimal_places=1, choices=DECIMAL_CHOICES, verbose_name='A label')
9090

9191

9292
class TestModelSerializer(TestCase):

0 commit comments

Comments
 (0)