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..00784cd 100644 --- a/source/compatibility.txt +++ b/source/compatibility.txt @@ -29,14 +29,13 @@ 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+}. 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..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 + * - 5.2 - ✓ - ✓ - ✓ - ✓ - - * - 5.0 - - + * - 5.1 + - ✓ - ✓ - ✓ - ✓ diff --git a/source/interact-data/crud.txt b/source/interact-data/crud.txt index f0d5c26..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 `__ +more information, see the `Django Admin Site <{+django-docs+}/ref/contrib/admin/>`__ entry in the {+framework+} documentation. Query API 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: