mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-02-03 05:04:31 +03:00
Fix for Django 1.7 issue with long default verbose_name arguments on ChoiceField
This commit is contained in:
parent
0ccb148183
commit
0b6eb4a881
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue
Block a user