Skip to content

Commit 3042a6d

Browse files
committed
few edits
1 parent 8e508c7 commit 3042a6d

File tree

4 files changed

+7
-13
lines changed

4 files changed

+7
-13
lines changed

django_mongodb_backend/routers.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,4 @@ def kms_provider(self, model, *args, **kwargs):
3131

3232

3333
def register_routers():
34-
"""
35-
Patch the ConnectionRouter to use the custom kms_provider method.
36-
"""
3734
ConnectionRouter.kms_provider = kms_provider

docs/source/ref/queryable-encryption.rst

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,6 @@ Unsupported fields
8989
The following fields are supported by Django MongoDB Backend but are not
9090
supported by Queryable Encryption.
9191

92-
+--------------------------------------+------------------------------------------------------------+
93-
| :class:`~django.db.models.SlugField` | Queryable Encryption does not :doc:`support unique indexes |
94-
| | on encrypted fields |
95-
| | <manual:core/queryable-encryption/reference/limitations>`. |
96-
+--------------------------------------+------------------------------------------------------------+
92+
+--------------------------------------+-----------------------------------------------+
93+
| :class:`~django.db.models.SlugField` | Indexes aren't supported on encrypted fields. |
94+
+--------------------------------------+-----------------------------------------------+

docs/source/topics/queryable-encryption.rst

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,12 @@
22
Queryable Encryption
33
====================
44

5-
*Added in version 5.2.0b2.*
5+
.. versionadded:: 5.2.0b2
66

77
Django MongoDB Backend supports :doc:`manual:core/queryable-encryption` which
88
allows you to use :ref:`encrypted fields <encrypted-fields>` to store sensitive
99
data in MongoDB.
1010

11-
.. _encrypted-field-example:
12-
1311
The basics
1412
==========
1513

@@ -22,7 +20,8 @@ Let's consider this example::
2220

2321
class Patient(models.Model):
2422
ssn = EncryptedCharField(
25-
max_length=11, queries={"queryType": "equality"}
23+
max_length=11,
24+
queries={"queryType": "equality"},
2625
)
2726

2827
def __str__(self):

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ classifiers = [
3434
]
3535

3636
[project.optional-dependencies]
37-
docs = ["sphinx>=7"]
37+
docs = [ "sphinx>=7"]
3838
encryption = ["pymongo[encryption]"]
3939

4040
[project.urls]

0 commit comments

Comments
 (0)