Sort NamedItems by abbrev first, since that's often what we use. master
authorW. Trevor King <wking@drexel.edu>
Mon, 2 Apr 2012 17:21:36 +0000 (13:21 -0400)
committerW. Trevor King <wking@drexel.edu>
Mon, 2 Apr 2012 17:21:36 +0000 (13:21 -0400)
chemdb/models.py

index 9aa4e9c5d11b08ebf3a50df5455b005436462871..f4a02f4d4cbac9bd991da47b749db3c9de3b0033 100644 (file)
@@ -13,7 +13,7 @@ class NamedItem (_models.Model):
 
     class Meta:
         abstract = True
-        ordering = ['name']
+        ordering = ['abbrev', 'name']
 
     def __unicode__(self):
         return u'{0.abbrev}'.format(self)