  from django.test import TestCase
  from django.utils.datastructures import SortedDict
  
  from rest_framework import serializers
  from rest_framework.fields import (humanize_field, humanize_field_type,
                                     humanize_form_fields, Field)
  from rest_framework.serializers import Serializer
  from rest_framework.tests.models import RESTFrameworkModel
  
  
  class TimestampedModel(models.Model):
 
</s> remove HUMANIZED_FIELD_TYPES = {
    'BooleanField': u'Boolean',
    'CharField': u'String',
    'ChoiceField': u'Single Choice',
    'ComboField': u'Single Choice',
    'DateField': u'Date',
    'DateTimeField': u'Date and Time',
    'DecimalField': u'Decimal',
    'EmailField': u'Email',
    'Field': u'Field',
    'FileField': u'File',
    'FilePathField': u'File Path',
    'FloatField': u'Float',
    'GenericIPAddressField': u'Generic IP Address',
    'IPAddressField': u'IP Address',
    'ImageField': u'Image',
    'IntegerField': u'Integer',
    'MultiValueField': u'Multiple Value',
    'MultipleChoiceField': u'Multiple Choice',
    'NullBooleanField': u'Nullable Boolean',
    'RegexField': u'Regular Expression',
    'SlugField': u'Slug',
    'SplitDateTimeField': u'Split Date and Time',
    'TimeField': u'Time',
    'TypedChoiceField': u'Typed Single Choice',
    'TypedMultipleChoiceField': u'Typed Multiple Choice',
    'URLField': u'URL',
}


 </s> add  </s> remove class Form(forms.Form):
    field1 = forms.CharField(max_length=3, label='field one')
    field2 = forms.CharField(label='field two')
 </s> add class HumanizableSerializer(Serializer):
    field1 = CharField(3, required=True)
    field2 = CharField(10, required=False) </s> remove         self.assertEqual(getattr(serializer.fields['url_field'], 'max_length'), 200)
 </s> add         self.assertEqual(getattr(serializer.fields['url_field'],
                                 'max_length'), 200) </s> remove             url_field = serializers.URLField(source='url_field', max_length=20, required=False)
 </s> add             url_field = serializers.URLField(source='url_field',
                                             max_length=20, required=False) </s> remove             slug_field = serializers.SlugField(source='slug_field', max_length=20, required=False)
 </s> add             slug_field = serializers.SlugField(source='slug_field',
                                               max_length=20, required=False)
from rest_framework.fields import Field, CharField
  from django.test import TestCase
  from django.utils.datastructures import SortedDict
  
  from rest_framework import serializers
from rest_framework.fields import Field, CharField
from rest_framework.fields import Field, CharField
  from rest_framework.serializers import Serializer
  from rest_framework.tests.models import RESTFrameworkModel
  
  
  class TimestampedModel(models.Model):
keep keep keep keep replace replace keep keep keep keep keep
 simplified, moved field humanizing to Field. broken tests 
rest_framework/tests/fields.py