X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-database.git/blobdiff_plain/a63c9130969c412fb859f06e4c35098d68adaa44..0c0d546ff44020192115b52af0268f3121e954cf:/python/database/models.py diff --git a/python/database/models.py b/python/database/models.py index e44aff3..625e04b 100644 --- a/python/database/models.py +++ b/python/database/models.py @@ -128,7 +128,8 @@ session.mapper(NIC, nic_table) session.mapper(Disk, disk_table) session.mapper(Type, types_table) session.mapper(Mirror, mirrors_table) -session.mapper(CDROM, cdroms_table) +session.mapper(CDROM, cdroms_table, + properties={'mirror': relation(Mirror, backref="cdroms")}) session.mapper(Autoinstall, autoinstalls_table) def clear_cache():