From b9fe7f9294b1b4fc974c008adeb96e1375cdb0c6 Mon Sep 17 00:00:00 2001 From: Jon Dufresne Date: Wed, 24 Apr 2019 03:44:13 -0700 Subject: 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. --- docs/releases/3.1.txt | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'docs') 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 ` and + :attr:`Meta.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 -- cgit v1.3