summaryrefslogtreecommitdiff
path: root/examples/custom_attributes/custom_management.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/custom_attributes/custom_management.py')
-rw-r--r--examples/custom_attributes/custom_management.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/custom_attributes/custom_management.py b/examples/custom_attributes/custom_management.py
index 3c80183e2..0ffd0db4b 100644
--- a/examples/custom_attributes/custom_management.py
+++ b/examples/custom_attributes/custom_management.py
@@ -11,7 +11,7 @@ with a custom attribute system as well.
"""
from sqlalchemy import (create_engine, MetaData, Table, Column, Integer, Text,
ForeignKey)
-from sqlalchemy.orm import (mapper, relation, create_session,
+from sqlalchemy.orm import (mapper, relationship, create_session,
InstrumentationManager)
from sqlalchemy.orm.attributes import set_attribute, get_attribute, del_attribute, is_instrumented
@@ -161,7 +161,7 @@ if __name__ == '__main__':
pass
mapper(A, table1, properties={
- 'bs':relation(B)
+ 'bs':relationship(B)
})
mapper(B, table2)