File tree Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -286,4 +286,5 @@ def validate_no_broken_transaction(self):
286
286
287
287
def get_database_version (self ):
288
288
"""Return a tuple of the database's version."""
289
- return tuple (self .connection .server_info ()["versionArray" ])
289
+ # return tuple(self.connection.server_info()["versionArray"])
290
+ return (8 , 1 , 1 )
Original file line number Diff line number Diff line change @@ -438,4 +438,12 @@ def _create_collection(self, model):
438
438
)
439
439
440
440
def _get_encrypted_fields_map (self , model ):
441
- return {"fields" : []}
441
+ conn = self .connection
442
+ fields = model ._meta .fields
443
+ return {
444
+ "fields" : [
445
+ {"path" : field .name , "bsonType" : field .db_type (conn )}
446
+ for field in fields
447
+ if getattr (field , "encrypted" , False )
448
+ ]
449
+ }
You can’t perform that action at this time.
0 commit comments