Machine -> type relation
authorEric Price <ecprice@mit.edu>
Mon, 8 Oct 2007 06:38:38 +0000 (02:38 -0400)
committerEric Price <ecprice@mit.edu>
Mon, 8 Oct 2007 06:38:38 +0000 (02:38 -0400)
svn path=/trunk/packages/sipb-xen-database/sipb-xen-database/; revision=137

sipb_xen_database/models.py

index 2736bb4..4226598 100644 (file)
@@ -82,7 +82,8 @@ class CDROM(object):
 
 assign_mapper(ctx, Machine, machine_table, \
               properties={'nics': relation(NIC),
-                          'disks': relation(Disk)});
+                          'disks': relation(Disk),
+                          'type': relation(Type)});
 assign_mapper(ctx, NIC, nic_table)
 assign_mapper(ctx, Disk, disk_table)
 assign_mapper(ctx, Type, types_table)