  python primitives.
  2. The process of marshalling between python primitives and request and
  response content is handled by parsers and renderers.
  """
  from django.core.exceptions import ValidationError
  from django.db import models
  from django.utils import six
  from django.utils.datastructures import SortedDict
  from collections import namedtuple
  from rest_framework.fields import empty, set_value, Field, SkipField
 
</s> remove             else:
                assert False, 'Field name `%s` is not valid.' % field_name
 </s> add             elif hasattr(model, field_name):
                # Create a read only field for model methods and properties.
                field_cls = ReadOnlyField
                kwargs = {}
from django.core.exceptions import ImproperlyConfigured, ValidationError
  python primitives.
  2. The process of marshalling between python primitives and request and
  response content is handled by parsers and renderers.
  """
from django.core.exceptions import ImproperlyConfigured, ValidationError
  from django.db import models
  from django.utils import six
  from django.utils.datastructures import SortedDict
  from collections import namedtuple
  from rest_framework.fields import empty, set_value, Field, SkipField
keep keep keep keep replace keep keep keep keep keep
 Configuration correctness tests on ModelSerializer 
rest_framework/serializers.py