Add Client.readings backref

This commit is contained in:
Lance Edgar 2017-08-04 16:07:35 -05:00
parent aee6f6d341
commit 844a05202e

View file

@ -135,7 +135,10 @@ class Reading(Base):
Client,
doc="""
Reference to the tempmon client which took this reading.
""")
""",
backref=orm.backref(
'readings',
cascade='all, delete-orphan'))
probe_uuid = sa.Column(sa.String(length=32), nullable=False)
probe = orm.relationship(