1
0
mirror of https://github.com/django/django.git synced 2025-11-07 07:15:35 +00:00

Fixed #32060 -- Added Random database function.

This commit is contained in:
Nick Pope
2020-07-16 23:32:46 +01:00
committed by Mariusz Felisiak
parent f87b0ecd37
commit 06c5d3fafc
12 changed files with 51 additions and 27 deletions

View File

@@ -314,6 +314,8 @@ Models
:attr:`TextField <django.db.models.TextField.db_collation>` allows setting a
database collation for the field.
* Added the :class:`~django.db.models.functions.Random` database function.
Pagination
~~~~~~~~~~
@@ -444,6 +446,9 @@ backends.
non-deterministic collations are not supported, set
``supports_non_deterministic_collations`` to ``False``.
* ``DatabaseOperations.random_function_sql()`` is removed in favor of the new
:class:`~django.db.models.functions.Random` database function.
:mod:`django.contrib.admin`
---------------------------