summaryrefslogtreecommitdiff
path: root/app/sketches/models.py
diff options
context:
space:
mode:
Diffstat (limited to 'app/sketches/models.py')
-rw-r--r--app/sketches/models.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/app/sketches/models.py b/app/sketches/models.py
index 22522bd..c7d28a5 100644
--- a/app/sketches/models.py
+++ b/app/sketches/models.py
@@ -25,6 +25,11 @@ class Sketch(models.Model):
)
status = models.IntegerField(choices=PUB_STATUS, default=1)
+ class Meta:
+ ordering = ('-pub_date',)
+ get_latest_by = 'pub_date'
+ verbose_name_plural = 'sketches'
+
def __str__(self):
return self.title