mirror of
https://github.com/django/django.git
synced 2025-08-04 19:08:28 +00:00
Removed versionadded/changed annotations dating back to 1.4.
This commit is contained in:
parent
ef017a5f00
commit
7ee7599ab3
49 changed files with 59 additions and 409 deletions
|
@ -804,8 +804,6 @@ for this field is a :class:`~django.forms.TextInput`.
|
|||
|
||||
.. class:: GenericIPAddressField([protocol=both, unpack_ipv4=False, **options])
|
||||
|
||||
.. versionadded:: 1.4
|
||||
|
||||
An IPv4 or IPv6 address, in string format (e.g. ``192.0.2.30`` or
|
||||
``2a02:42fe::4``). The default form widget for this field is a
|
||||
:class:`~django.forms.TextInput`.
|
||||
|
|
|
@ -209,10 +209,6 @@ Django quotes column and table names behind the scenes.
|
|||
|
||||
ordering = ['-pub_date', 'author']
|
||||
|
||||
.. versionchanged:: 1.4
|
||||
The Django admin honors all elements in the list/tuple; before 1.4, only
|
||||
the first one was respected.
|
||||
|
||||
``permissions``
|
||||
---------------
|
||||
|
||||
|
|
|
@ -378,16 +378,12 @@ query spans multiple tables, it's possible to get duplicate results when a
|
|||
:meth:`values()` together, be careful when ordering by fields not in the
|
||||
:meth:`values()` call.
|
||||
|
||||
.. versionadded:: 1.4
|
||||
|
||||
As of Django 1.4, you can pass positional arguments (``*fields``) in order to
|
||||
specify the names of fields to which the ``DISTINCT`` should apply. This
|
||||
translates to a ``SELECT DISTINCT ON`` SQL query.
|
||||
|
||||
Here's the difference. For a normal ``distinct()`` call, the database compares
|
||||
*each* field in each row when determining which rows are distinct. For a
|
||||
``distinct()`` call with specified field names, the database will only compare
|
||||
the specified field names.
|
||||
You can pass positional arguments (``*fields``) in order to specify the names
|
||||
of fields to which the ``DISTINCT`` should apply. This translates to a
|
||||
``SELECT DISTINCT ON`` SQL query. Here's the difference. For a normal
|
||||
``distinct()`` call, the database compares *each* field in each row when
|
||||
determining which rows are distinct. For a ``distinct()`` call with specified
|
||||
field names, the database will only compare the specified field names.
|
||||
|
||||
.. note::
|
||||
This ability to specify field names is only available in PostgreSQL.
|
||||
|
@ -740,8 +736,6 @@ prefetch_related
|
|||
|
||||
.. method:: prefetch_related(*lookups)
|
||||
|
||||
.. versionadded:: 1.4
|
||||
|
||||
Returns a ``QuerySet`` that will automatically retrieve, in a single batch,
|
||||
related objects for each of the specified lookups.
|
||||
|
||||
|
@ -1191,8 +1185,6 @@ select_for_update
|
|||
|
||||
.. method:: select_for_update(nowait=False)
|
||||
|
||||
.. versionadded:: 1.4
|
||||
|
||||
Returns a queryset that will lock rows until the end of the transaction,
|
||||
generating a ``SELECT ... FOR UPDATE`` SQL statement on supported databases.
|
||||
|
||||
|
@ -1368,8 +1360,6 @@ bulk_create
|
|||
|
||||
.. method:: bulk_create(objs, batch_size=None)
|
||||
|
||||
.. versionadded:: 1.4
|
||||
|
||||
This method inserts the provided list of objects into the database in an
|
||||
efficient manner (generally only 1 query, no matter how many objects there
|
||||
are)::
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue