From: Christopher Allan Webber Date: Sun, 29 Jan 2012 22:36:33 +0000 (-0600) Subject: Make latest_migration a property X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=47616ece50b34ea15c7449345f3528947822adc5;p=mediagoblin.git Make latest_migration a property --- diff --git a/mediagoblin/db/sql/util.py b/mediagoblin/db/sql/util.py index e81cf845..33d2c59b 100644 --- a/mediagoblin/db/sql/util.py +++ b/mediagoblin/db/sql/util.py @@ -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