Column('owner', String, nullable=False),
Column('contact', String, nullable=False),
Column('uuid', String, nullable=False),
- Column('administrator', String, nullable=False, default=False),
+ Column('administrator', String, nullable=True, default=None),
Column('type_id', String, ForeignKey('types.type_id'), nullable=False),
Column('autorestart', Boolean, nullable=False, default=False),
Column('cpus', Integer, nullable=False, default=1),
return "<Autoinstall %s: %s (%s)>" % (self.autoinstall_id, self.description, self.type.type_id)
session.mapper(Machine, machine_table,
- properties={'nics': relation(NIC, backref="machine", lazy=False),
- 'disks': relation(Disk, backref="machine", lazy=False),
- 'type': relation(Type, lazy=False),
- 'acl': relation(MachineAccess, backref="machine", lazy=False, passive_deletes=True, cascade="all, delete-orphan")});
+ properties={'nics': relation(NIC, backref="machine"),
+ 'disks': relation(Disk, backref="machine"),
+ 'type': relation(Type),
+ 'acl': relation(MachineAccess, backref="machine", passive_deletes=True, cascade="all, delete-orphan")});
session.mapper(MachineAccess, machine_access_table)
session.mapper(NIC, nic_table)
session.mapper(Disk, disk_table)