Ignore:
Timestamp:
Oct 28, 2008, 3:16:32 AM (15 years ago)
Author:
broder
Message:

Add attributes to the ORM to link mirrors and cdroms

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/invirt-database/python/database/models.py

    r1361 r1363  
    129129session.mapper(Type, types_table)
    130130session.mapper(Mirror, mirrors_table)
    131 session.mapper(CDROM, cdroms_table)
     131session.mapper(CDROM, cdroms_table,
     132               properties={'mirror': relation(Mirror, backref="cdroms")})
    132133session.mapper(Autoinstall, autoinstalls_table)
    133134
Note: See TracChangeset for help on using the changeset viewer.