From 4554b23e81e50a7f766d1d7aeebbf2b4abb64247 Mon Sep 17 00:00:00 2001 From: nesdis <nesdis@gmail.com> Date: Mon, 1 Jun 2020 15:47:53 +0200 Subject: [PATCH] Support for Django 3.0 - Test cases to protect Djongo core 1.3 --- docs/docs/integrating-django-with-mongodb.md | 28 ++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/docs/docs/integrating-django-with-mongodb.md b/docs/docs/integrating-django-with-mongodb.md index f54c8ac..6793517 100644 --- a/docs/docs/integrating-django-with-mongodb.md +++ b/docs/docs/integrating-django-with-mongodb.md @@ -85,6 +85,34 @@ Djongo allows for checks on data fields before they are saved to the database. R Apply validators on each of the field values before they are saved. +### Integrity checks + +```python +class Entry(models.Model): + _id = models.ObjectIdField() + blog = models.EmbeddedField( + model_container=Blog, + null=True + ) +``` +## Rapid Prototyping + +### Goodbye Migrations + +## Using MongoDB fields + +## Simplify complex queries + +## Django Admin + +## Data security and integrity checks +Djongo allows for checks on data fields before they are saved to the database. Running accurate integrity checks and field value validators before writing data into the database is extremely important. + + +### Validators +Apply validators on each of the field values before they are saved. + + ### Integrity checks ```python -- GitLab