[3.0.x] Refs #30947 -- Changed tuples to lists in model Meta options examples in docs.

Follow up to 97d3321e89.

Backport of e5cacb1f47 from master
This commit is contained in:
Mariusz Felisiak 2019-11-04 11:57:53 +01:00
parent 1761d598fd
commit 2000ed5180
2 changed files with 3 additions and 3 deletions

View File

@ -18,7 +18,7 @@ objects, and a ``Publication`` has multiple ``Article`` objects:
title = models.CharField(max_length=30)
class Meta:
ordering = ('title',)
ordering = ['title']
def __str__(self):
return self.title
@ -28,7 +28,7 @@ objects, and a ``Publication`` has multiple ``Article`` objects:
publications = models.ManyToManyField(Publication)
class Meta:
ordering = ('headline',)
ordering = ['headline']
def __str__(self):
return self.headline

View File

@ -23,7 +23,7 @@ To define a many-to-one relationship, use :class:`~django.db.models.ForeignKey`:
return self.headline
class Meta:
ordering = ('headline',)
ordering = ['headline']
What follows are examples of operations that can be performed using the Python
API facilities.