- # foreign attributes management
- # the key to track remote objects
- foreign_key = 'hostname'
- # the fields that get verbatim copied from foreign objects
- foreign_fields = ['boot_state','model','version','date_created','last_updated']
+ # for Cache
+ class_key = 'hostname'
+ foreign_fields = ['boot_state','model','version']
+ # forget about these ones, they are read-only anyway
+ # handling them causes Cache to re-sync all over again
+ # 'date_created','last_updated'
+ foreign_xrefs = [
+ # in this case, we dont need the 'table' but Cache will look it up, so...
+ {'field' : 'site_id' , 'class' : 'Site' , 'table' : 'unused-on-direct-refs' } ,
+ ]