  
  
  class TestModelSerializer(TestCase):
      def test_create_method(self):
          class TestSerializer(serializers.ModelSerializer):
              non_model_field = serializers.CharField()
  
              class Meta:
 
</s>
class MappingForChoicesWithNonStandardArgs(models.Model):
    choices_field_with_nonstandard_args = models.DecimalField(max_digits=3, decimal_places=1, choices=DECIMAL_CHOICES)


  
  
class MappingForChoicesWithNonStandardArgs(models.Model):
    choices_field_with_nonstandard_args = models.DecimalField(max_digits=3, decimal_places=1, choices=DECIMAL_CHOICES)


  class TestModelSerializer(TestCase):
      def test_create_method(self):
          class TestSerializer(serializers.ModelSerializer):
              non_model_field = serializers.CharField()
  
              class Meta:
keep add keep keep keep keep keep keep
 Fix for ModelSerializer ChoiceField with nonstandard args. Closes #3126.
tests/test_model_serializer.py