1. James Bennett
  2. practical-django-projects

Commits

James Bennett  committed f28d7ce

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

  • Participants
  • Parent commits 1a2519a
  • Branches default

Comments (0)

Files changed (1)

File coltrane/models.py

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