diff options
| author | Carlton Gibson <carlton.gibson@noumenal.es> | 2022-05-10 15:07:11 +0200 |
|---|---|---|
| committer | Carlton Gibson <carlton@noumenal.es> | 2022-05-17 14:22:06 +0200 |
| commit | ca1c3151c3df48f1fb2cd17df9cfe93800254665 (patch) | |
| tree | 81a02e0cfbb4f67af2f2406b8e8ac5ce20f824c4 /docs/ref/models | |
| parent | d10e569ea5786d3a5babac760c4facb1ff029a68 (diff) | |
Removed versionadded/changed annotations for 4.0.
Diffstat (limited to 'docs/ref/models')
| -rw-r--r-- | docs/ref/models/conditional-expressions.txt | 4 | ||||
| -rw-r--r-- | docs/ref/models/constraints.txt | 2 | ||||
| -rw-r--r-- | docs/ref/models/database-functions.txt | 4 | ||||
| -rw-r--r-- | docs/ref/models/expressions.txt | 8 | ||||
| -rw-r--r-- | docs/ref/models/lookups.txt | 5 | ||||
| -rw-r--r-- | docs/ref/models/querysets.txt | 16 |
6 files changed, 0 insertions, 39 deletions
diff --git a/docs/ref/models/conditional-expressions.txt b/docs/ref/models/conditional-expressions.txt index 53654b50e5..a58a938e09 100644 --- a/docs/ref/models/conditional-expressions.txt +++ b/docs/ref/models/conditional-expressions.txt @@ -48,10 +48,6 @@ objects that have an ``output_field`` that is a :class:`~django.db.models.BooleanField`. The result is provided using the ``then`` keyword. -.. versionchanged:: 4.0 - - Support for lookup expressions was added. - Some examples:: >>> from django.db.models import F, Q, When diff --git a/docs/ref/models/constraints.txt b/docs/ref/models/constraints.txt index 9b1e110f85..d0a9a017dc 100644 --- a/docs/ref/models/constraints.txt +++ b/docs/ref/models/constraints.txt @@ -118,8 +118,6 @@ ensures the age field is never less than 18. .. attribute:: UniqueConstraint.expressions -.. versionadded:: 4.0 - Positional argument ``*expressions`` allows creating functional unique constraints on expressions and database functions. diff --git a/docs/ref/models/database-functions.txt b/docs/ref/models/database-functions.txt index acca4a7c68..e9a0736b5b 100644 --- a/docs/ref/models/database-functions.txt +++ b/docs/ref/models/database-functions.txt @@ -1173,10 +1173,6 @@ It can also be registered as a transform. For example:: >>> # Get vectors whose round() is less than 20 >>> vectors = Vector.objects.filter(x__round__lt=20, y__round__lt=20) -.. versionchanged:: 4.0 - - The ``precision`` argument was added. - ``Sign`` -------- diff --git a/docs/ref/models/expressions.txt b/docs/ref/models/expressions.txt index da533ba5c3..967592cbaa 100644 --- a/docs/ref/models/expressions.txt +++ b/docs/ref/models/expressions.txt @@ -416,8 +416,6 @@ The ``Aggregate`` API is as follows: .. attribute:: empty_result_set_value - .. versionadded:: 4.0 - Defaults to ``None`` since most aggregate functions result in ``NULL`` when applied to an empty result set. @@ -455,10 +453,6 @@ grouping) contains no entries. The ``**extra`` kwargs are ``key=value`` pairs that can be interpolated into the ``template`` attribute. -.. versionchanged:: 4.0 - - The ``default`` argument was added. - Creating your own Aggregate Functions ------------------------------------- @@ -963,8 +957,6 @@ calling the appropriate methods on the wrapped expression. .. attribute:: empty_result_set_value - .. versionadded:: 4.0 - Tells Django which value should be returned when the expression is used to apply a function over an empty result set. Defaults to :py:data:`NotImplemented` which forces the expression to be computed on diff --git a/docs/ref/models/lookups.txt b/docs/ref/models/lookups.txt index f4fa0f899d..a03cede22f 100644 --- a/docs/ref/models/lookups.txt +++ b/docs/ref/models/lookups.txt @@ -218,8 +218,3 @@ following methods: .. method:: process_rhs(compiler, connection) Behaves the same way as :meth:`process_lhs`, for the right-hand side. - - .. versionchanged:: 4.0 - - Support for using lookups in ``QuerySet`` annotations, aggregations, - and directly in filters was added. diff --git a/docs/ref/models/querysets.txt b/docs/ref/models/querysets.txt index a9da1dcf7e..47eefdb579 100644 --- a/docs/ref/models/querysets.txt +++ b/docs/ref/models/querysets.txt @@ -1869,10 +1869,6 @@ raised if ``select_for_update()`` is used in autocommit mode. PostgreSQL doesn't support ``select_for_update()`` with :class:`~django.db.models.expressions.Window` expressions. -.. versionchanged:: 4.0 - - The ``skip_locked`` argument was allowed on MariaDB 10.6+. - ``raw()`` ~~~~~~~~~ @@ -2331,10 +2327,6 @@ support it). .. _MySQL documentation: https://dev.mysql.com/doc/refman/en/sql-mode.html#ignore-strict-comparison .. _MariaDB documentation: https://mariadb.com/kb/en/ignore/ -.. versionchanged:: 4.0 - - Support for the fetching primary key attributes on SQLite 3.35+ was added. - .. versionchanged:: 4.1 The ``update_conflicts``, ``update_fields``, and ``unique_fields`` @@ -2364,10 +2356,6 @@ updated:: >>> Entry.objects.bulk_update(objs, ['headline']) 2 -.. versionchanged:: 4.0 - - The return value of the number of objects updated was added. - :meth:`.QuerySet.update` is used to save the changes, so this is more efficient than iterating through the list of models and calling ``save()`` on each of them, but it has a few caveats: @@ -2778,8 +2766,6 @@ results and then checks if any were returned. *Asynchronous version*: ``acontains()`` -.. versionadded:: 4.0 - Returns ``True`` if the :class:`.QuerySet` contains ``obj``, and ``False`` if not. This tries to perform the query in the simplest and fastest way possible. @@ -3833,8 +3819,6 @@ example usage. ``default`` ~~~~~~~~~~~ -.. versionadded:: 4.0 - An optional argument that allows specifying a value to use as a default value when the queryset (or grouping) contains no entries. |
