Use De Morgan's laws to simplify an expression. (#1531)
This commit is contained in:
		| @@ -608,9 +608,9 @@ class EmbeddedDocumentField(BaseField): | |||||||
|     """ |     """ | ||||||
|  |  | ||||||
|     def __init__(self, document_type, **kwargs): |     def __init__(self, document_type, **kwargs): | ||||||
|         if ( |         if not ( | ||||||
|             not isinstance(document_type, six.string_types) and |             isinstance(document_type, six.string_types) or | ||||||
|             not issubclass(document_type, EmbeddedDocument) |             issubclass(document_type, EmbeddedDocument) | ||||||
|         ): |         ): | ||||||
|             self.error('Invalid embedded document class provided to an ' |             self.error('Invalid embedded document class provided to an ' | ||||||
|                        'EmbeddedDocumentField') |                        'EmbeddedDocumentField') | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user