projects
/
chemdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
2a177eb
)
Sort NamedItems by abbrev first, since that's often what we use.
master
author
W. Trevor King
<wking@drexel.edu>
Mon, 2 Apr 2012 17:21:36 +0000
(13:21 -0400)
committer
W. Trevor King
<wking@drexel.edu>
Mon, 2 Apr 2012 17:21:36 +0000
(13:21 -0400)
chemdb/models.py
patch
|
blob
|
history
diff --git
a/chemdb/models.py
b/chemdb/models.py
index 9aa4e9c5d11b08ebf3a50df5455b005436462871..f4a02f4d4cbac9bd991da47b749db3c9de3b0033 100644
(file)
--- a/
chemdb/models.py
+++ b/
chemdb/models.py
@@
-13,7
+13,7
@@
class NamedItem (_models.Model):
class Meta:
abstract = True
class Meta:
abstract = True
- ordering = ['name']
+ ordering = ['
abbrev', '
name']
def __unicode__(self):
return u'{0.abbrev}'.format(self)
def __unicode__(self):
return u'{0.abbrev}'.format(self)