  
          else:
              instance = self.opts.model(**attrs)
  
          try:
              instance.full_clean(exclude=self.get_validation_exclusions())
          except ValidationError, err:
              self._errors = err.message_dict
              return None
  
          return instance
  
      def save(self):
          """
          Save the deserialized object and return it.
 
</s>
  
          else:
              instance = self.opts.model(**attrs)
  






          return instance
  
      def save(self):
          """
          Save the deserialized object and return it.
keep keep keep keep replace replace replace replace replace replace keep keep keep keep keep
 Ensure model field validation is performed for ModelSerializers with a custom restore_object method.  Fixes #623.
rest_framework/serializers.py