          if hasattr(self, 'initial_data'):
              return OrderedDict([
                  (field_name, field.get_value(self.initial_data))
                  for field_name, field in self.fields.items()
                  if field.get_value(self.initial_data) is not empty
                  and not field.read_only
              ])
  
          return OrderedDict([
              (field.field_name, field.get_initial())
              for field in self.fields.values()
 
</s> remove                 not getattr(view, 'get_serializer', None)
                or not any(is_form_media_type(parser.media_type) for parser in view.parser_classes)
 </s> add                 not getattr(view, 'get_serializer', None) or
                not any(is_form_media_type(parser.media_type) for parser in view.parser_classes) </s> remove             if not (api_settings.FORM_CONTENT_OVERRIDE
                    and api_settings.FORM_CONTENTTYPE_OVERRIDE):
 </s> add             if not (api_settings.FORM_CONTENT_OVERRIDE and
                    api_settings.FORM_CONTENTTYPE_OVERRIDE): </s> remove                 (getattr(relation.field.rel, 'through', None) is not None)
                and not relation.field.rel.through._meta.auto_created
 </s> add                 (getattr(relation.field.rel, 'through', None) is not None) and
                not relation.field.rel.through._meta.auto_created </s> remove         '.' in field.source and (key in validated_data)
        and isinstance(validated_data[key], (list, dict))
 </s> add         '.' in field.source and
        (key in validated_data) and
        isinstance(validated_data[key], (list, dict)) </s> remove         isinstance(field, BaseSerializer) and (key in validated_data)
        and isinstance(validated_data[key], (list, dict))
 </s> add         isinstance(field, BaseSerializer) and
        (key in validated_data) and
        isinstance(validated_data[key], (list, dict))
                if (field.get_value(self.initial_data) is not empty) and
                not field.read_only
          if hasattr(self, 'initial_data'):
              return OrderedDict([
                  (field_name, field.get_value(self.initial_data))
                  for field_name, field in self.fields.items()
                if (field.get_value(self.initial_data) is not empty) and
                not field.read_only
                if (field.get_value(self.initial_data) is not empty) and
                not field.read_only
              ])
  
          return OrderedDict([
              (field.field_name, field.get_initial())
              for field in self.fields.values()
keep keep keep keep replace replace keep keep keep keep keep
 Fixes for latest pep8 updates. Refs #2563. 
rest_framework/serializers.py