      positive_integer_field = models.PositiveIntegerField()
      positive_small_integer_field = models.PositiveSmallIntegerField()
      slug_field = models.SlugField(max_length=100)
      small_integer_field = models.SmallIntegerField()
      text_field = models.TextField()
      time_field = models.TimeField()
      url_field = models.URLField(max_length=100)
      custom_field = CustomField()
  
      def method(self):
 
</s> remove                 text_field = CharField(style={'base_template': 'textarea.html'})
 </s> add                 text_field = CharField(max_length=100, style={'base_template': 'textarea.html'}) </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 = models.TextField(max_length=100)
      positive_integer_field = models.PositiveIntegerField()
      positive_small_integer_field = models.PositiveSmallIntegerField()
      slug_field = models.SlugField(max_length=100)
      small_integer_field = models.SmallIntegerField()
    text_field = models.TextField(max_length=100)
      time_field = models.TimeField()
      url_field = models.URLField(max_length=100)
      custom_field = CustomField()
  
      def method(self):
keep keep keep keep replace keep keep keep keep keep
 Map TextField max_length to CharField 
tests/test_model_serializer.py