Skip to content

Commit 1771f56

Browse files
committed
Avoid double conditional
1 parent 264b37a commit 1771f56

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

django_mongodb_backend/schema.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,7 @@ def _create_collection(self, model):
427427
"""
428428

429429
db = self.get_database()
430-
if hasattr(model, "encrypted") and model.encrypted:
430+
if getattr(model, "encrypted", False):
431431
client = self.connection.connection
432432
ce = get_client_encryption(
433433
client,

0 commit comments

Comments
 (0)