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 d6813bb commit 4c30590Copy full SHA for 4c30590
tests/encryption_/models.py
@@ -1,6 +1,7 @@
1
from django.db import models
2
3
from django_mongodb_backend.fields import (
4
+ EmbeddedModelField,
5
EncryptedBigIntegerField,
6
EncryptedBinaryField,
7
EncryptedBooleanField,
@@ -38,7 +39,7 @@ class PatientRecord(EmbeddedModel):
38
39
class Patient(models.Model):
40
patient_name = models.CharField(max_length=255)
41
patient_id = models.BigIntegerField()
- patient_record = EncryptedEmbeddedModelField(PatientRecord)
42
+ patient_record = EmbeddedModelField(PatientRecord)
43
44
def __str__(self):
45
return f"{self.patient_name} ({self.patient_id})"
0 commit comments