|
@@ -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
|