diff options
| author | Simon Charette <charette.s@gmail.com> | 2016-01-19 20:43:41 -0500 |
|---|---|---|
| committer | Simon Charette <charette.s@gmail.com> | 2016-02-26 12:25:12 -0500 |
| commit | 766afc22a1dfa7d34a08de85356b7bc9dba025e7 (patch) | |
| tree | b37eb872bed24bbaeafd7a57cd5f656b54dc47b8 /docs | |
| parent | 31098e3288595c13f165935f2579f1af744e5240 (diff) | |
Fixed #24793 -- Unified temporal difference support.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/releases/1.10.txt | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/docs/releases/1.10.txt b/docs/releases/1.10.txt index 7ea4a5e4d5..1220d9402c 100644 --- a/docs/releases/1.10.txt +++ b/docs/releases/1.10.txt @@ -201,7 +201,7 @@ CSRF Database backends ~~~~~~~~~~~~~~~~~ -* ... +* Temporal data subtraction was unified on all backends. Email ~~~~~ @@ -398,6 +398,13 @@ Database backend API from the database are now converted to ``float`` to make it easier to combine them with values used by the GIS libraries. +* In order to enable temporal subtraction you must set the + ``supports_temporal_subtraction`` database feature flag to ``True`` and + implement the ``DatabaseOperations.subtract_temporals()`` method. This + method should return the SQL and parameters required to compute the + difference in microseconds between the ``lhs`` and ``rhs`` arguments in the + datatype used to store :class:`~django.db.models.DurationField`. + ``select_related()`` prohibits non-relational fields for nested relations ------------------------------------------------------------------------- |
