Holy moley is it hard to do MUCK stuff relationally.
This commit is contained in:
parent
c72417e5e4
commit
d9ed6d5cd7
8 changed files with 89 additions and 24 deletions
5
muck/models/__init__.py
Normal file
5
muck/models/__init__.py
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
from muck.models.dbref import Dbref
|
||||
from muck.models.exit import Exit
|
||||
from sqlalchemy.orm import relationship
|
||||
|
||||
Dbref.exits = relationship("Exit", back_populates="source", foreign_keys=[Exit.location_id])
|
||||
Loading…
Add table
Add a link
Reference in a new issue