Skip to content

Commit f7d7ebe

Browse files
aclark4lifeWaVEV
andauthored
Update django_mongodb_backend/utils.py
Co-authored-by: Emanuel Lupi <emanuel.lupi91@gmail.com>
1 parent a30a562 commit f7d7ebe

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

django_mongodb_backend/utils.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -208,9 +208,8 @@ def model_has_encrypted_fields(model):
208208
return True
209209

210210
# Recursively check embedded models.
211-
if isinstance(field, EmbeddedModelField) and model_has_encrypted_fields(
211+
return isinstance(field, EmbeddedModelField) and model_has_encrypted_fields(
212212
field.embedded_model
213-
):
214-
return True
213+
)
215214

216215
return False

0 commit comments

Comments
 (0)