Make latest_migration a property
authorChristopher Allan Webber <cwebber@dustycloud.org>
Sun, 29 Jan 2012 22:36:33 +0000 (16:36 -0600)
committerChristopher Allan Webber <cwebber@dustycloud.org>
Sun, 29 Jan 2012 22:36:33 +0000 (16:36 -0600)
mediagoblin/db/sql/util.py

index e81cf845bf39e12c89b7466098eb1d47ca23ba91..33d2c59b2ae8d815767c68718f37d35eb80f1f3b 100644 (file)
@@ -76,6 +76,7 @@ class MigrationManager(object):
         return self.database.query(
             self.migration_model).filter_by(name=self.name).first()
 
+    @property
     def latest_migration(self):
         """
         Return a migration number for the latest migration, or 0 if