summaryrefslogtreecommitdiff
path: root/docs/ref/models
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2018-12-27 19:17:23 -0500
committerTim Graham <timograham@gmail.com>2019-01-17 10:50:25 -0500
commitec7e179aeb177a2a43b448b30d9286eb8539be8d (patch)
tree1ff87c31167e933b69c93af7dc12c46e65608534 /docs/ref/models
parenteb0ce6fa3669971f1e21a3fdba270cf33d603eaa (diff)
Removed versionadded/changed annotations for 2.1.
Diffstat (limited to 'docs/ref/models')
-rw-r--r--docs/ref/models/database-functions.txt24
-rw-r--r--docs/ref/models/expressions.txt4
-rw-r--r--docs/ref/models/fields.txt10
-rw-r--r--docs/ref/models/indexes.txt4
-rw-r--r--docs/ref/models/options.txt4
-rw-r--r--docs/ref/models/querysets.txt14
6 files changed, 0 insertions, 60 deletions
diff --git a/docs/ref/models/database-functions.txt b/docs/ref/models/database-functions.txt
index c82a7cd7b7..c7f7b5d981 100644
--- a/docs/ref/models/database-functions.txt
+++ b/docs/ref/models/database-functions.txt
@@ -535,8 +535,6 @@ Usage example::
.. class:: TruncWeek(expression, output_field=None, tzinfo=None, **extra)
- .. versionadded:: 2.1
-
Truncates to midnight on the Monday of the week.
.. attribute:: kind = 'week'
@@ -1172,8 +1170,6 @@ Text functions
.. class:: Chr(expression, **extra)
-.. versionadded:: 2.1
-
Accepts a numeric field or expression and returns the text representation of
the expression as a single character. It works the same as Python's :func:`chr`
function.
@@ -1225,8 +1221,6 @@ Usage example::
.. class:: Left(expression, length, **extra)
-.. versionadded:: 2.1
-
Returns the first ``length`` characters of the given text field or expression.
Usage example::
@@ -1287,8 +1281,6 @@ Usage example::
.. class:: LPad(expression, length, fill_text=Value(' '), **extra)
-.. versionadded:: 2.1
-
Returns the value of the given text field or expression padded on the left side
with ``fill_text`` so that the resulting value is ``length`` characters long.
The default ``fill_text`` is a space.
@@ -1308,8 +1300,6 @@ Usage example::
.. class:: LTrim(expression, **extra)
-.. versionadded:: 2.1
-
Similar to :class:`~django.db.models.functions.Trim`, but removes only leading
spaces.
@@ -1318,8 +1308,6 @@ spaces.
.. class:: Ord(expression, **extra)
-.. versionadded:: 2.1
-
Accepts a single text field or expression and returns the Unicode code point
value for the first character of that expression. It works similar to Python's
:func:`ord` function, but an exception isn't raised if the expression is more
@@ -1341,8 +1329,6 @@ Usage example::
.. class:: Repeat(expression, number, **extra)
-.. versionadded:: 2.1
-
Returns the value of the given text field or expression repeated ``number``
times.
@@ -1360,8 +1346,6 @@ Usage example::
.. class:: Replace(expression, text, replacement=Value(''), **extra)
-.. versionadded:: 2.1
-
Replaces all occurrences of ``text`` with ``replacement`` in ``expression``.
The default replacement text is the empty string. The arguments to the function
are case-sensitive.
@@ -1403,8 +1387,6 @@ Usage example::
.. class:: Right(expression, length, **extra)
-.. versionadded:: 2.1
-
Returns the last ``length`` characters of the given text field or expression.
Usage example::
@@ -1420,8 +1402,6 @@ Usage example::
.. class:: RPad(expression, length, fill_text=Value(' '), **extra)
-.. versionadded:: 2.1
-
Similar to :class:`~django.db.models.functions.LPad`, but pads on the right
side.
@@ -1430,8 +1410,6 @@ side.
.. class:: RTrim(expression, **extra)
-.. versionadded:: 2.1
-
Similar to :class:`~django.db.models.functions.Trim`, but removes only trailing
spaces.
@@ -1491,8 +1469,6 @@ Usage example::
.. class:: Trim(expression, **extra)
-.. versionadded:: 2.1
-
Returns the value of the given text field or expression with leading and
trailing spaces removed.
diff --git a/docs/ref/models/expressions.txt b/docs/ref/models/expressions.txt
index 2413952228..bfd5ddea2c 100644
--- a/docs/ref/models/expressions.txt
+++ b/docs/ref/models/expressions.txt
@@ -17,10 +17,6 @@ Django supports negation, addition, subtraction, multiplication, division,
modulo arithmetic, and the power operator on query expressions, using Python
constants, variables, and even other expressions.
-.. versionchanged:: 2.1
-
- Support for negation was added.
-
Some examples
=============
diff --git a/docs/ref/models/fields.txt b/docs/ref/models/fields.txt
index 2d95233351..1b572d8076 100644
--- a/docs/ref/models/fields.txt
+++ b/docs/ref/models/fields.txt
@@ -422,10 +422,6 @@ A field to store raw binary data. It can be assigned :class:`bytes`,
By default, ``BinaryField`` sets :attr:`~Field.editable` to ``False``, in which
case it can't be included in a :class:`~django.forms.ModelForm`.
-.. versionchanged:: 2.1
-
- Older versions don't allow setting ``editable`` to ``True``.
-
``BinaryField`` has one extra optional argument:
.. attribute:: BinaryField.max_length
@@ -453,12 +449,6 @@ or :class:`~django.forms.NullBooleanSelect` if :attr:`null=True <Field.null>`.
The default value of ``BooleanField`` is ``None`` when :attr:`Field.default`
isn't defined.
-.. versionchanged:: 2.1
-
- In older versions, this field doesn't permit ``null=True``, so you have to
- use :class:`NullBooleanField` instead. Using the latter is now discouraged
- as it's likely to be deprecated in a future version of Django.
-
``CharField``
-------------
diff --git a/docs/ref/models/indexes.txt b/docs/ref/models/indexes.txt
index 1b27c17193..e894aa8d9a 100644
--- a/docs/ref/models/indexes.txt
+++ b/docs/ref/models/indexes.txt
@@ -40,10 +40,6 @@ For example ``Index(fields=['headline', '-pub_date'])`` would create SQL with
``(headline, pub_date DESC)``. Index ordering isn't supported on MySQL. In that
case, a descending index is created as a normal index.
-.. versionchanged:: 2.1
-
- Older versions don't accept a tuple.
-
``name``
--------
diff --git a/docs/ref/models/options.txt b/docs/ref/models/options.txt
index e06a099a61..d28cd3fe16 100644
--- a/docs/ref/models/options.txt
+++ b/docs/ref/models/options.txt
@@ -325,10 +325,6 @@ Django quotes column and table names behind the scenes.
before the model is created by :djadmin:`migrate` in order to prevent any
omitted permissions from being created.
- .. versionchanged:: 2.1
-
- The ``view`` permission was added.
-
``proxy``
---------
diff --git a/docs/ref/models/querysets.txt b/docs/ref/models/querysets.txt
index 3ddd516eaf..4c161200da 100644
--- a/docs/ref/models/querysets.txt
+++ b/docs/ref/models/querysets.txt
@@ -544,10 +544,6 @@ ordering. For example::
>>> Blog.objects.values('name__lower')
<QuerySet [{'name__lower': 'beatles blog'}]>
-.. versionchanged:: 2.1
-
- Support for lookups was added.
-
An aggregate within a ``values()`` clause is applied before other arguments
within the same ``values()`` clause. If you need to group by another value,
add it to an earlier ``values()`` clause instead. For example::
@@ -752,10 +748,6 @@ Examples::
>>> Entry.objects.filter(headline__contains='Lennon').dates('pub_date', 'day')
[datetime.date(2005, 3, 20)]
-.. versionchanged:: 2.1
-
- "week" support was added.
-
``datetimes()``
~~~~~~~~~~~~~~~
@@ -781,10 +773,6 @@ object. If it's ``None``, Django uses the :ref:`current time zone
<default-current-time-zone>`. It has no effect when :setting:`USE_TZ` is
``False``.
-.. versionchanged:: 2.1
-
- "week" support was added.
-
.. _database-time-zone-definitions:
.. note::
@@ -2561,8 +2549,6 @@ with a copy of the ``QuerySet``’s methods. See
``explain()``
~~~~~~~~~~~~~
-.. versionadded:: 2.1
-
.. method:: explain(format=None, **options)
Returns a string of the ``QuerySet``’s execution plan, which details how the