code: def validate(self, obj):
          
  
          if not isinstance(obj, self.model_class):
              raise ValidationError('Invalid object(%s) for service %s' % (type(obj), type(self)))
          LOG.debug(u'Object %s state: %s', self.model_class, obj.__dict__)
          obj.full_clean()
docs: Raises django.core.exceptions.ValidationError if any validation error exists