magical_powers relationship set on wrong table, fixed
authorChristopher Allan Webber <cwebber@dustycloud.org>
Sun, 29 Jan 2012 22:48:44 +0000 (16:48 -0600)
committerChristopher Allan Webber <cwebber@dustycloud.org>
Sun, 29 Jan 2012 22:48:44 +0000 (16:48 -0600)
mediagoblin/tests/test_sql_migrations.py

index cae295492c50f3d248e13dd4bfadde18a58b4a11..7a49a4a50345036f570238151eb3b9e6bf88b2c3 100644 (file)
@@ -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"