summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorJon Dufresne <jon.dufresne@gmail.com>2019-04-24 03:44:13 -0700
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2019-11-05 08:16:31 +0100
commitb9fe7f9294b1b4fc974c008adeb96e1375cdb0c6 (patch)
tree34609074f9fd40b3fdbd5893e8abe6b9b85610b4 /docs
parente5cacb1f47cb3a2943bbc7685a630c84503b0d1b (diff)
Fixed #30947 -- Changed tuples to lists in model Meta options in django.contrib modules.
The Django "Model Meta options" docs provide examples and generally point the reader to use lists for the unique_together and ordering options. Follow our own advice for contrib models. More generally, lists should be used for homogeneous sequences of arbitrary lengths of which both unique_together and ordering are.
Diffstat (limited to 'docs')
-rw-r--r--docs/releases/3.1.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/docs/releases/3.1.txt b/docs/releases/3.1.txt
index e8cb289873..1a965b41b5 100644
--- a/docs/releases/3.1.txt
+++ b/docs/releases/3.1.txt
@@ -282,6 +282,11 @@ Miscellaneous
* :tfilter:`floatformat` template filter now outputs (positive) ``0`` for
negative numbers which round to zero.
+* :attr:`Meta.ordering <django.db.models.Options.ordering>` and
+ :attr:`Meta.unique_together <django.db.models.Options.unique_together>`
+ options on models in ``django.contrib`` modules that were formerly tuples are
+ now lists.
+
.. _deprecated-features-3.1:
Features deprecated in 3.1