          if value in ('f', 'False', '0'):
              return False
          raise ValidationError(self.error_messages['invalid'] % value)
  
  class TextField(WritableField):
      type_name = 'TextField'
  
      def from_native(self, value):
          if isinstance(value, basestring) or value is None:
              return value
          return smart_unicode(value)
  
  class CharField(WritableField):
      type_name = 'CharField'
  
      def __init__(self, max_length=None, min_length=None, *args, **kwargs):
 
</s> remove class LongText(object):
    def __init__(self, content):
        self.content = content

    def __eq__(self, other):
        return all([getattr(self, attr) == getattr(other, attr)
                    for attr in ('content',)])


class LongTextSerializer(serializers.Serializer):
    content = serializers.TextField()

    def restore_object(self, data, instance=None):
        if instance is None:
            return LongText(**data)
        for key, val in data.items():
            setattr(instance, key, val)
        return instance


 </s> add  </s> remove     def test_update_long_text(self):
        data = {
            'content' : 'Lorem ipsum dolor sit amet.'
        }
        serializer = LongTextSerializer(data, self.long_text)
        self.assertEquals(serializer.is_valid(), True)
        self.assertEquals(data['content'], self.long_text.content)

 </s> add  </s> remove         self.long_text = LongText('test test test test')
 </s> add 
          if value in ('f', 'False', '0'):
              return False
          raise ValidationError(self.error_messages['invalid'] % value)
  







  
  class CharField(WritableField):
      type_name = 'CharField'
  
      def __init__(self, max_length=None, min_length=None, *args, **kwargs):
keep keep keep keep replace replace replace replace replace replace replace keep keep keep keep keep
 Removed serializer.TextField and related tests 
rest_framework/fields.py