Method
__init__
(self, document_type, **kwargs)
Source from the content-addressed store, hash-verified
| 712 | """ |
| 713 | |
| 714 | def __init__(self, document_type, **kwargs): |
| 715 | if not ( |
| 716 | isinstance(document_type, str) |
| 717 | or issubclass(document_type, EmbeddedDocument) |
| 718 | ): |
| 719 | self.error( |
| 720 | "Invalid embedded document class provided to an " |
| 721 | "EmbeddedDocumentField" |
| 722 | ) |
| 723 | |
| 724 | self.document_type_obj = document_type |
| 725 | super().__init__(**kwargs) |
| 726 | |
| 727 | @property |
| 728 | def document_type(self): |
Callers
nothing calls this directly
Tested by
no test coverage detected