From 51e9788e7faacca0322ea4a039cad0afe58fe6ef Mon Sep 17 00:00:00 2001 From: norareidy Date: Wed, 21 May 2025 15:49:45 -0400 Subject: [PATCH 1/3] DOCSP-49585: v5.2 release --- config/redirects | 2 +- snooty.toml | 4 ++-- source/compatibility.txt | 6 +++--- source/connect.txt | 4 ---- source/includes/language-compatibility-table-django.rst | 2 +- source/limitations-upcoming.txt | 4 ++++ 6 files changed, 11 insertions(+), 11 deletions(-) diff --git a/config/redirects b/config/redirects index 66798ae..c18db6c 100644 --- a/config/redirects +++ b/config/redirects @@ -1,5 +1,5 @@ define: prefix docs/languages/python/django-mongodb define: base https://www.mongodb.com/${prefix} -define: versions master +define: versions v5.0 v5.1 v5.2 master # raw: -> ${base}/ diff --git a/snooty.toml b/snooty.toml index 4e9c2df..954fbbc 100644 --- a/snooty.toml +++ b/snooty.toml @@ -3,7 +3,7 @@ title = "Django MongoDB Backend" intersphinx = [ "https://www.mongodb.com/docs/manual/objects.inv", "https://www.mongodb.com/docs/atlas/objects.inv", - "http://docs.djangoproject.com/en/5.1/_objects", + "http://docs.djangoproject.com/en/5.2/_objects", ] toc_landing_pages = [ @@ -16,7 +16,7 @@ toc_landing_pages = [ django-odm = "Django MongoDB Backend" api = "https://django-mongodb-backend.readthedocs.io/en/latest/" mdb-server = "MongoDB Server" -django-version = "5.1" +django-version = "5.2" django-docs = "https://docs.djangoproject.com/en/{+django-version+}" framework = "Django" pymongo-version = "4.11" diff --git a/source/compatibility.txt b/source/compatibility.txt index fe6cf0f..3d47fbb 100644 --- a/source/compatibility.txt +++ b/source/compatibility.txt @@ -29,14 +29,14 @@ in the PyMongo documentation. PyMongo Compatibility --------------------- -{+django-odm+} supports PyMongo versions 4.6 and later. +{+django-odm+} supports PyMongo versions 4.7 and later. Django Compatibility -------------------- Your major and minor version of {+django-odm+} must match your Django version. -For example, {+django-odm+} version 5.1 requires Django 5.1. The minimum supported -Django version is 5.0. +For example, {+django-odm+} version {+django-version+} requires Django {+django-version+}. +The minimum supported Django version is 5.0. Language Compatibility ---------------------- diff --git a/source/connect.txt b/source/connect.txt index 634a418..a5168ae 100644 --- a/source/connect.txt +++ b/source/connect.txt @@ -144,10 +144,6 @@ function accepts the following arguments: - ``uri``: Your MongoDB connection URI. - ``db_name``: The name of the database you want to use. -- ``conn_max_age``: Configures persistent database connections. - This argument is optional. To learn more, see - `Persistent connections <{+django-docs+}/ref/databases/#persistent-database-connections>`__ - in the {+framework+} documentation. - ``test``: Provides a dictionary of settings for test databases. This argument is optional. To learn more, see `the TEST setting <{+django-docs+}/ref/settings/#test>`__ diff --git a/source/includes/language-compatibility-table-django.rst b/source/includes/language-compatibility-table-django.rst index 09216cb..c411820 100644 --- a/source/includes/language-compatibility-table-django.rst +++ b/source/includes/language-compatibility-table-django.rst @@ -10,7 +10,7 @@ - Python 3.10 - Python 3.9 - * - 5.1 + * - 5.1 to 5.2 - ✓ - ✓ - ✓ diff --git a/source/limitations-upcoming.txt b/source/limitations-upcoming.txt index 34b2a4c..0141e81 100644 --- a/source/limitations-upcoming.txt +++ b/source/limitations-upcoming.txt @@ -288,6 +288,10 @@ section of the Create Models guide. not supported. Instead, use ``ObjectIdField``. - *Unsupported*. + * - ``CompositePrimaryKey`` + - *Unsupported*. + - *Unsupported*. + * - ``DateTimeField`` - *Partially Supported*. You can use this field type with the following limitations: From 5083528f8727dcdccb48648efaf1cabd42d8084c Mon Sep 17 00:00:00 2001 From: norareidy Date: Thu, 22 May 2025 10:05:00 -0400 Subject: [PATCH 2/3] feedback --- source/compatibility.txt | 1 - source/includes/language-compatibility-table-django.rst | 6 +++--- source/interact-data/crud.txt | 2 +- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/source/compatibility.txt b/source/compatibility.txt index 3d47fbb..00784cd 100644 --- a/source/compatibility.txt +++ b/source/compatibility.txt @@ -36,7 +36,6 @@ Django Compatibility Your major and minor version of {+django-odm+} must match your Django version. For example, {+django-odm+} version {+django-version+} requires Django {+django-version+}. -The minimum supported Django version is 5.0. Language Compatibility ---------------------- diff --git a/source/includes/language-compatibility-table-django.rst b/source/includes/language-compatibility-table-django.rst index c411820..5b27504 100644 --- a/source/includes/language-compatibility-table-django.rst +++ b/source/includes/language-compatibility-table-django.rst @@ -10,15 +10,15 @@ - Python 3.10 - Python 3.9 - * - 5.1 to 5.2 + * - 5.2 - ✓ - ✓ - ✓ - ✓ - - * - 5.0 - - + * - 5.1 + - ✓ - ✓ - ✓ - ✓ diff --git a/source/interact-data/crud.txt b/source/interact-data/crud.txt index f0d5c26..8c6f798 100644 --- a/source/interact-data/crud.txt +++ b/source/interact-data/crud.txt @@ -26,7 +26,7 @@ collection. You can also use the {+framework+} admin site to edit your models and their corresponding collections on a web interface. For -more information, see the `Django Admin Site `__ +more information, see the `Django Admin Site <{+django-docs+/ref/contrib/admin/>`__ entry in the {+framework+} documentation. Query API From c443dd520c7194366b5a29407c9dad722290a267 Mon Sep 17 00:00:00 2001 From: norareidy Date: Thu, 22 May 2025 10:17:20 -0400 Subject: [PATCH 3/3] fix --- source/interact-data/crud.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/interact-data/crud.txt b/source/interact-data/crud.txt index 8c6f798..5a71f41 100644 --- a/source/interact-data/crud.txt +++ b/source/interact-data/crud.txt @@ -26,7 +26,7 @@ collection. You can also use the {+framework+} admin site to edit your models and their corresponding collections on a web interface. For -more information, see the `Django Admin Site <{+django-docs+/ref/contrib/admin/>`__ +more information, see the `Django Admin Site <{+django-docs+}/ref/contrib/admin/>`__ entry in the {+framework+} documentation. Query API