]> git.0d.be Git - chloro.git/blobdiff - chloro/phyll/models.py
views: add page to list notes by tag
[chloro.git] / chloro / phyll / models.py
index b8872c4d61b8d0f5d6f732069e53f7581c97ace8..230738930d3be022e583bdfde77b5ddb6b141af0 100644 (file)
@@ -29,5 +29,8 @@ class Note(models.Model):
     creation_timestamp = models.DateTimeField(auto_now_add=True)
     last_update_timestamp = models.DateTimeField(auto_now=True)
 
+    class Meta:
+        ordering = ['-creation_timestamp']
+
     def get_absolute_url(self):
         return '/%s/' % self.slug