Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion config/redirects
Original file line number Diff line number Diff line change
@@ -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: <source file> -> ${base}/<destination>
4 changes: 2 additions & 2 deletions snooty.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand All @@ -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"
Expand Down
6 changes: 3 additions & 3 deletions source/compatibility.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It might be best to remove this sentence since Django 5.0 is now end-of-life and unsupported.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you end up removing the 5.0, this might not be relevant, but you shouldn't combine the variables with a hardcoded value because this will become out of date once v6.0 is released. Since this is an example, you can just use hardcoded versions for all of these.

Copy link
Collaborator Author

@norareidy norareidy May 22, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I removed that line about the minimum supported Django verison. Not sure which variable I would use instead, since the minimum supported version is not the {+django-version+} (right now it's 5.1).


Language Compatibility
----------------------
Expand Down
4 changes: 0 additions & 4 deletions source/connect.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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>`__
Expand Down
2 changes: 1 addition & 1 deletion source/includes/language-compatibility-table-django.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
- Python 3.10
- Python 3.9

* - 5.1
* - 5.1 to 5.2
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd suggest including them on separate lines. When Python 3.14 comes out soon, it'll likely only be supported on 5.2.

Also, with the release of Django 5.2, Django 5.0 is end of life, so we could remove that line in the 5.2 docs.

- ✓
- ✓
- ✓
Expand Down
4 changes: 4 additions & 0 deletions source/limitations-upcoming.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
Loading