Order move changelogs descendingly.
authorZhorken <zhorken@gmail.com>
Mon, 6 Dec 2010 23:10:52 +0000 (18:10 -0500)
committerZhorken <zhorken@gmail.com>
Mon, 6 Dec 2010 23:10:52 +0000 (18:10 -0500)
pokedex/db/tables.py

index 0e336ce..177309a 100644 (file)
@@ -1375,7 +1375,7 @@ Machine.item = relation(Item)
 Machine.version_group = relation(VersionGroup)
 
 Move.changelog = relation(MoveChangelog,
 Machine.version_group = relation(VersionGroup)
 
 Move.changelog = relation(MoveChangelog,
-    order_by=MoveChangelog.changed_in_version_group_id.asc(),
+    order_by=MoveChangelog.changed_in_version_group_id.desc(),
     backref='move',
 )
 Move.contest_effect = relation(ContestEffect, backref='moves')
     backref='move',
 )
 Move.contest_effect = relation(ContestEffect, backref='moves')