We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d48ebc9 commit 4992d1fCopy full SHA for 4992d1f
tests/encryption_/models.py
@@ -22,15 +22,15 @@
22
EncryptedTimeField,
23
EncryptedURLField,
24
)
25
-from django_mongodb_backend.models import EncryptedEmbeddedModel
+from django_mongodb_backend.models import EmbeddedModel, EncryptedEmbeddedModel
26
27
28
class Billing(EncryptedEmbeddedModel):
29
cc_type = models.CharField(max_length=50)
30
cc_number = models.CharField(max_length=20)
31
32
33
-class PatientRecord(EncryptedEmbeddedModel):
+class PatientRecord(EmbeddedModel):
34
ssn = EncryptedCharField(max_length=11, queries={"queryType": "equality"})
35
billing = EncryptedEmbeddedModelField(Billing)
36
0 commit comments