From d88fcb03e2e520da6a7d0203d660e4536108f56b Mon Sep 17 00:00:00 2001 From: Jessica Tallon Date: Fri, 17 Jul 2015 17:51:51 +0200 Subject: Change codebase to query or create correct User model The code base had many references to User.username and other specific to LocalUser attributes as that was the way it use to exist. This updates those to query on the generic User model but filtering by attributes on the LocalUser. --- mediagoblin/db/migrations.py | 1 + 1 file changed, 1 insertion(+) (limited to 'mediagoblin/db') diff --git a/mediagoblin/db/migrations.py b/mediagoblin/db/migrations.py index 6b25aebf..b6c172e0 100644 --- a/mediagoblin/db/migrations.py +++ b/mediagoblin/db/migrations.py @@ -1305,6 +1305,7 @@ def migrate_data_foreign_keys(db): use the old ActivityIntermediator to the new temparay fields which use the new GenericForeignKey. """ + metadata = MetaData(bind=db.bind) activity_table = inspect_table(metadata, "core__activities") ai_table = inspect_table(metadata, "core__activity_intermediators") -- cgit v1.2.3