1
0
mirror of https://github.com/django/django.git synced 2025-10-24 06:06:09 +00:00

Removed versionadded/changed annotations for 2.1.

This commit is contained in:
Tim Graham
2018-12-27 19:17:23 -05:00
parent eb0ce6fa36
commit ec7e179aeb
25 changed files with 0 additions and 208 deletions

View File

@@ -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.