mirror of https://github.com/django/django.git
Refs #30947 -- Changed tuples to lists in model Meta options examples in docs.
Follow up to 97d3321e89
.
This commit is contained in:
parent
cff6b14b27
commit
e5cacb1f47
|
@ -18,7 +18,7 @@ objects, and a ``Publication`` has multiple ``Article`` objects:
|
||||||
title = models.CharField(max_length=30)
|
title = models.CharField(max_length=30)
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
ordering = ('title',)
|
ordering = ['title']
|
||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
return self.title
|
return self.title
|
||||||
|
@ -28,7 +28,7 @@ objects, and a ``Publication`` has multiple ``Article`` objects:
|
||||||
publications = models.ManyToManyField(Publication)
|
publications = models.ManyToManyField(Publication)
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
ordering = ('headline',)
|
ordering = ['headline']
|
||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
return self.headline
|
return self.headline
|
||||||
|
|
|
@ -23,7 +23,7 @@ To define a many-to-one relationship, use :class:`~django.db.models.ForeignKey`:
|
||||||
return self.headline
|
return self.headline
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
ordering = ('headline',)
|
ordering = ['headline']
|
||||||
|
|
||||||
What follows are examples of operations that can be performed using the Python
|
What follows are examples of operations that can be performed using the Python
|
||||||
API facilities.
|
API facilities.
|
||||||
|
|
Loading…
Reference in New Issue