add standard hooks

This commit is contained in:
Bastien Gerard
2021-03-29 22:02:57 +02:00
parent e5a2714baf
commit b9d370c885
26 changed files with 39 additions and 34 deletions

View File

@@ -2,7 +2,7 @@ import datetime
import unittest
import pytest
from bson import DBRef, ObjectId, SON
from bson import SON, DBRef, ObjectId
from mongoengine import (
BooleanField,
@@ -35,9 +35,9 @@ from mongoengine import (
ValidationError,
)
from mongoengine.base import (
_document_registry,
BaseField,
EmbeddedDocumentList,
_document_registry,
)
from mongoengine.errors import DeprecatedError
from tests.utils import MongoDBTestCase