Commits

James Bennett  committed f28d7ce

Add default ordering for the Category model (p. 51).

  • Participants
  • Parent commits 1a2519a

Comments (0)

Files changed (1)

File coltrane/models.py

     description = models.TextField()
 
     class Meta:
+        ordering = ['title']
         verbose_name_plural = "Categories"
 
     def __unicode__(self):