From 7b21336872d82c74041cdb592c5004a172b7d3a7 Mon Sep 17 00:00:00 2001 From: Tom Christie Date: Thu, 16 Jul 2015 16:18:14 +0100 Subject: [PATCH] Rename model to play nice with Django 1.7. --- tests/test_model_serializer.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_model_serializer.py b/tests/test_model_serializer.py index 24e3e21d1..f9ef633c5 100644 --- a/tests/test_model_serializer.py +++ b/tests/test_model_serializer.py @@ -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()