Changes between Version 10 and Version 11 of JoinedResourceController


Ignore:
Timestamp:
09/20/09 21:06:27 (16 years ago)
Author:
Fran Boon
Comment:

proper joinby syntax example

Legend:

Unmodified
Added
Removed
Modified
  • JoinedResourceController

    v10 v11  
    4545  - '''joinby''' describes the join keys:
    4646    - pass a single field name for natural joins (same key field in both tables)
    47     - pass a dictionary of ''tablename:fieldname'' pairs for primary/foreign key matching, in which:
     47    - pass a dictionary of ''tablename=fieldname'' pairs for primary/foreign key matching, in which:
    4848      - ''tablename'' is the name of the respective primary table
    4949      - ''fieldname'' the name of the foreign key in the joined table that points to the ''id'' field in the primary table
    50       - e.g. {{{joinby = {'db.gis_feature':'feature_id'}}}}
     50      - e.g. {{{joinby = dict(pr_person='person_id')}}}
    5151  - '''fields''' is a list of the fields in the joined resource that shall appear in list views:
    5252    - if omitted or set to None, all readable fields will be included