Skip to content

Commit 7b21336

Browse files
committed
Rename model to play nice with Django 1.7.
1 parent 0b6eb4a commit 7b21336

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_model_serializer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ class FieldOptionsModel(models.Model):
8585
choices_field = models.CharField(max_length=100, choices=COLOR_CHOICES)
8686

8787

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

9191

@@ -317,7 +317,7 @@ class Meta:
317317
def test_choices_with_nonstandard_args(self):
318318
class ExampleSerializer(serializers.ModelSerializer):
319319
class Meta:
320-
model = MappingForChoicesWithNonStandardArgs
320+
model = ChoicesModel
321321

322322
ExampleSerializer()
323323

0 commit comments

Comments
 (0)