diff options
author | Christopher Allan Webber <cwebber@dustycloud.org> | 2012-01-29 16:36:33 -0600 |
---|---|---|
committer | Christopher Allan Webber <cwebber@dustycloud.org> | 2012-01-29 16:36:33 -0600 |
commit | 47616ece50b34ea15c7449345f3528947822adc5 (patch) | |
tree | 42b8557bdc54efaaa2c7d4c3e07c1e0dbbf3622f | |
parent | 9a185731903e750c041061139cc3738859b6acf7 (diff) | |
download | mediagoblin-47616ece50b34ea15c7449345f3528947822adc5.tar.lz mediagoblin-47616ece50b34ea15c7449345f3528947822adc5.tar.xz mediagoblin-47616ece50b34ea15c7449345f3528947822adc5.zip |
Make latest_migration a property
-rw-r--r-- | mediagoblin/db/sql/util.py | 1 |
1 files changed, 1 insertions, 0 deletions
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 |