mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
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.
This commit is contained in:
committed by
Mariusz Felisiak
parent
e5cacb1f47
commit
b9fe7f9294
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user