summaryrefslogtreecommitdiff
path: root/app/normalize/models.py
diff options
context:
space:
mode:
Diffstat (limited to 'app/normalize/models.py')
-rw-r--r--app/normalize/models.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/normalize/models.py b/app/normalize/models.py
index bcd8eac..f45f90b 100644
--- a/app/normalize/models.py
+++ b/app/normalize/models.py
@@ -10,8 +10,8 @@ class RelatedPost(models.Model):
pub_date = models.DateTimeField('Date published')
class Meta:
- ordering = ('model_name', '-pub_date',)
+ ordering = ('-model_name', '-pub_date',)
get_latest_by = 'pub_date'
def __str__(self):
- return self.title
+ return "%s - %s" % (self.model_name, self.title)