                  positive_integer_field = IntegerField()
                  positive_small_integer_field = IntegerField()
                  slug_field = SlugField(max_length=100)
                  small_integer_field = IntegerField()
                  text_field = CharField(style={'base_template': 'textarea.html'})
                  time_field = TimeField()
                  url_field = URLField(max_length=100)
                  custom_field = ModelField(model_field=<tests.test_model_serializer.CustomField: custom_field>)
          """)
          self.assertEqual(unicode_repr(TestSerializer()), expected)
 
</s> remove     text_field = models.TextField()
 </s> add     text_field = models.TextField(max_length=100) </s> remove     if max_length is not None and isinstance(model_field, models.CharField):
 </s> add     if max_length is not None and (isinstance(model_field, models.CharField) or
                                   isinstance(model_field, models.TextField)):
                text_field = CharField(max_length=100, style={'base_template': 'textarea.html'})
                  positive_integer_field = IntegerField()
                  positive_small_integer_field = IntegerField()
                  slug_field = SlugField(max_length=100)
                  small_integer_field = IntegerField()
                text_field = CharField(max_length=100, style={'base_template': 'textarea.html'})
                  time_field = TimeField()
                  url_field = URLField(max_length=100)
                  custom_field = ModelField(model_field=<tests.test_model_serializer.CustomField: custom_field>)
          """)
          self.assertEqual(unicode_repr(TestSerializer()), expected)
keep keep keep keep replace keep keep keep keep keep
 Map TextField max_length to CharField 
tests/test_model_serializer.py