mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-25 19:14:01 +03:00
Rename model to play nice with Django 1.7.
This commit is contained in:
parent
0b6eb4a881
commit
7b21336872
|
@ -85,7 +85,7 @@ class FieldOptionsModel(models.Model):
|
|||
choices_field = models.CharField(max_length=100, choices=COLOR_CHOICES)
|
||||
|
||||
|
||||
class MappingForChoicesWithNonStandardArgs(models.Model):
|
||||
class ChoicesModel(models.Model):
|
||||
choices_field_with_nonstandard_args = models.DecimalField(max_digits=3, decimal_places=1, choices=DECIMAL_CHOICES, verbose_name='A label')
|
||||
|
||||
|
||||
|
@ -317,7 +317,7 @@ class TestRegularFieldMappings(TestCase):
|
|||
def test_choices_with_nonstandard_args(self):
|
||||
class ExampleSerializer(serializers.ModelSerializer):
|
||||
class Meta:
|
||||
model = MappingForChoicesWithNonStandardArgs
|
||||
model = ChoicesModel
|
||||
|
||||
ExampleSerializer()
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user