@@ -420,90 +420,3 @@ These indexes use 0-based indexing.
420
420
.. admonition :: Forms are not supported
421
421
422
422
``PolymorphicEmbeddedModelArrayField ``\s don't appear in model forms.
423
-
424
- .. _encrypted-fields :
425
-
426
- Encrypted fields
427
- ================
428
-
429
- .. versionadded :: 5.2.0b2
430
-
431
- Encrypted fields are subclasses of Django's built-in fields and can be used to
432
- store sensitive data with MongoDB's :ref: `Queryable Encryption
433
- <queryable-encryption>` feature. They are subclasses of Django's
434
- built-in fields before storing it in the database.
435
-
436
- +----------------------------------------+------------------------------------------------------+
437
- | Encrypted Field | Django Field |
438
- +========================================+======================================================+
439
- | ``EncryptedBigIntegerField `` | :class: `~django.db.models.BigIntegerField ` |
440
- +----------------------------------------+------------------------------------------------------+
441
- | ``EncryptedBooleanField `` | :class: `~django.db.models.BooleanField ` |
442
- +----------------------------------------+------------------------------------------------------+
443
- | ``EncryptedCharField `` | :class: `~django.db.models.CharField ` |
444
- +----------------------------------------+------------------------------------------------------+
445
- | ``EncryptedDateField `` | :class: `~django.db.models.DateField ` |
446
- +----------------------------------------+------------------------------------------------------+
447
- | ``EncryptedDateTimeField `` | :class: `~django.db.models.DateTimeField ` |
448
- +----------------------------------------+------------------------------------------------------+
449
- | ``EncryptedDecimalField `` | :class: `~django.db.models.DecimalField ` |
450
- +----------------------------------------+------------------------------------------------------+
451
- | ``EncryptedFloatField `` | :class: `~django.db.models.FloatField ` |
452
- +----------------------------------------+------------------------------------------------------+
453
- | ``EncryptedGenericIPAddressField `` | :class: `~django.db.models.GenericIPAddressField ` |
454
- +----------------------------------------+------------------------------------------------------+
455
- | ``EncryptedIntegerField `` | :class: `~django.db.models.IntegerField ` |
456
- +----------------------------------------+------------------------------------------------------+
457
- | ``EncryptedPositiveBigIntegerField `` | :class: `~django.db.models.PositiveBigIntegerField ` |
458
- +----------------------------------------+------------------------------------------------------+
459
- | ``EncryptedPositiveIntegerField `` | :class: `~django.db.models.PositiveIntegerField ` |
460
- +----------------------------------------+------------------------------------------------------+
461
- | ``EncryptedPositiveSmallIntegerField `` | :class: `~django.db.models.PositiveSmallIntegerField ` |
462
- +----------------------------------------+------------------------------------------------------+
463
- | ``EncryptedSmallIntegerField `` | :class: `~django.db.models.SmallIntegerField ` |
464
- +----------------------------------------+------------------------------------------------------+
465
- | ``EncryptedTextField `` | :class: `~django.db.models.TextField ` |
466
- +----------------------------------------+------------------------------------------------------+
467
- | ``EncryptedTimeField `` | :class: `~django.db.models.TimeField ` |
468
- +----------------------------------------+------------------------------------------------------+
469
- | ``EncryptedURLField `` | :class: `~django.db.models.URLField ` |
470
- +----------------------------------------+------------------------------------------------------+
471
-
472
- ``EncryptedFieldMixin ``
473
- -----------------------
474
-
475
- .. class :: EncryptedFieldMixin
476
-
477
- A mixin that can be used to create custom encrypted fields
478
- that support MongoDB's Queryable Encryption.
479
-
480
- You can use the ``EncryptedFieldMixin `` to create your own encrypted fields. This mixin
481
- supports the use of a ``queries `` argument in the field definition to specify query type
482
- for the field::
483
-
484
- from django.db import models
485
- from django_mongodb_backend.fields import EncryptedFieldMixin
486
- from .models import MyField
487
-
488
-
489
- class MyEncryptedField(EncryptedFieldMixin, MyField):
490
- pass
491
-
492
-
493
- class MyModel(models.Model):
494
- my_encrypted_field = MyEncryptedField(
495
- queries={"queryType": "equality"},
496
- # Other field options...
497
- )
498
-
499
- Unsupported fields
500
- ------------------
501
-
502
- The following fields are supported by Django MongoDB Backend but are not
503
- supported by Queryable Encryption.
504
-
505
- +--------------------------------------+------------------------------------------------------------+
506
- | :class: `~django.db.models.SlugField ` | Queryable Encryption does not :doc: `support unique indexes |
507
- | | on encrypted fields |
508
- | | <manual:core/queryable-encryption/reference/limitations>`. |
509
- +--------------------------------------+------------------------------------------------------------+
0 commit comments