summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2019-05-03 13:48:09 -0500
committerluxagraf <sng@luxagraf.net>2019-05-03 13:48:09 -0500
commite5bc8411cc823d497cd26730a0636e82ed877312 (patch)
tree1c95aecff1248b02005e55490060a8c8d510a574
parentf43ca9d7aee9b880ab8fac8e1eb6c00192505048 (diff)
added better ordering to links
-rw-r--r--app/blog/models.py2
-rw-r--r--app/links/models.py4
2 files changed, 5 insertions, 1 deletions
diff --git a/app/blog/models.py b/app/blog/models.py
index ee4aca0..238feb0 100644
--- a/app/blog/models.py
+++ b/app/blog/models.py
@@ -32,7 +32,7 @@ class Entry(models.Model):
class Meta:
ordering = ('-pub_date',)
get_latest_by = 'pub_date'
- verbose_name_plural = 'Essays'
+ verbose_name_plural = 'Entry'
def __str__(self):
return self.title
diff --git a/app/links/models.py b/app/links/models.py
index 518ba33..0d17558 100644
--- a/app/links/models.py
+++ b/app/links/models.py
@@ -22,6 +22,10 @@ class Link(models.Model):
)
status = models.IntegerField(choices=PUB_STATUS, default=0)
+ class Meta:
+ ordering = ('-pub_date',)
+ get_latest_by = 'pub_date'
+
def __str__(self):
return self.title