aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/tests/test_sql_migrations.py
diff options
context:
space:
mode:
authorChristopher Allan Webber <cwebber@dustycloud.org>2012-01-29 16:48:44 -0600
committerChristopher Allan Webber <cwebber@dustycloud.org>2012-01-29 16:48:44 -0600
commit0f3526c601b7848a54808ec0baef832d3baaa8b7 (patch)
tree265037abf1392cfe7b1564d00dd221685b9bb2d6 /mediagoblin/tests/test_sql_migrations.py
parente8ba2223fa2bf79e8998dfbb54794b6a1cb93e63 (diff)
downloadmediagoblin-0f3526c601b7848a54808ec0baef832d3baaa8b7.tar.lz
mediagoblin-0f3526c601b7848a54808ec0baef832d3baaa8b7.tar.xz
mediagoblin-0f3526c601b7848a54808ec0baef832d3baaa8b7.zip
magical_powers relationship set on wrong table, fixed
Diffstat (limited to 'mediagoblin/tests/test_sql_migrations.py')
-rw-r--r--mediagoblin/tests/test_sql_migrations.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mediagoblin/tests/test_sql_migrations.py b/mediagoblin/tests/test_sql_migrations.py
index cae29549..7a49a4a5 100644
--- a/mediagoblin/tests/test_sql_migrations.py
+++ b/mediagoblin/tests/test_sql_migrations.py
@@ -201,6 +201,7 @@ class Creature3(Base3):
id = Column(Integer, primary_key=True)
name = Column(Unicode, unique=True, nullable=False, index=True)
num_limbs= Column(Integer, nullable=False)
+ magical_powers = relationship("CreaturePower3")
class CreaturePower3(Base3):
__tablename__ = "creature_power"
@@ -211,7 +212,6 @@ class CreaturePower3(Base3):
name = Column(Unicode)
description = Column(Unicode)
hitpower = Column(Float, nullable=False)
- magical_powers = relationship("CreaturePower3")
class Level3(Base3):
__tablename__ = "level"